Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
zapp-tensorflow
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zoe-apps
zapp-tensorflow
Commits
58028eb2
Commit
58028eb2
authored
Nov 23, 2017
by
Daniele Venzano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update image and gitlab CI
parent
8afbd15c
Pipeline
#4765
failed with stages
in 87 minutes and 14 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
19 deletions
+18
-19
.gitlab-ci.yml
.gitlab-ci.yml
+18
-1
validate.py
validate.py
+0
-18
No files found.
.gitlab-ci.yml
View file @
58028eb2
stages
:
-
build
-
test
-
pull
-
deploy
variables
:
...
...
@@ -15,13 +16,29 @@ build:json:
paths
:
-
"
*.json"
build:hub:
stage
:
build
script
:
-
docker pull tensorflow/magenta
-
docker pull tensorflow/syntaxnet
-
docker pull gcr.io/tensorflow/tensorflow:1.3.0-gpu-py3
-
docker pull gcr.io/tensorflow/tensorflow:1.3.0-py3
test:json:
image
:
python:3-alpine
stage
:
test
before_script
:
-
pip install requests
script
:
-
python validate.py ${ZOE_VALIDATION_URL} *google.json
-
python /scripts/validate.py ${ZOE_VALIDATION_URL} *google.json
pull:all:
stage
:
pull
script
:
-
/scripts/distribute_docker_image.sh tensorflow/magenta
-
/scripts/distribute_docker_image.sh tensorflow/syntaxnet
-
/scripts/distribute_docker_image.sh gcr.io/tensorflow/tensorflow:1.3.0-gpu-py3
-
/scripts/distribute_docker_image.sh gcr.io/tensorflow/tensorflow:1.3.0-py3
deploy:json:
stage
:
deploy
...
...
validate.py
deleted
100644 → 0
View file @
8afbd15c
#!/usr/bin/python
import
json
import
sys
import
requests
URL
=
sys
.
argv
[
1
]
files
=
sys
.
argv
[
2
:]
for
f
in
files
:
data
=
json
.
load
(
open
(
f
,
encoding
=
"utf-8"
))
data_req
=
{
"application"
:
data
}
r
=
requests
.
post
(
URL
,
json
=
data_req
)
if
r
.
status_code
!=
200
:
rep
=
r
.
json
()
print
(
rep
[
'message'
])
sys
.
exit
(
1
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment