Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
zoe-apps
zapp-tensorflow
Commits
4455637c
Commit
4455637c
authored
May 09, 2017
by
Daniele Venzano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Debug from CI
parent
17049d67
Pipeline
#4055
failed with stage
in 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
validate_all.sh
validate_all.sh
+0
-2
No files found.
validate_all.sh
View file @
4455637c
#!/bin/bash
#!/bin/bash
set
-e
set
-e
set
-x
VALIDATION_URL
=
${
VALIDATION_URL
:-
http
://localhost:5001/api/0.7/zapp_validation
}
VALIDATION_URL
=
${
VALIDATION_URL
:-
http
://localhost:5001/api/0.7/zapp_validation
}
...
@@ -12,7 +11,6 @@ for json in *.json; do
...
@@ -12,7 +11,6 @@ for json in *.json; do
echo
'{"application":'
>
$tempfile
echo
'{"application":'
>
$tempfile
cat
$json
>>
$tempfile
cat
$json
>>
$tempfile
echo
'}'
>>
$tempfile
echo
'}'
>>
$tempfile
curl
-s
-X
POST
-H
"Content-Type: application/json"
-d
@
$tempfile
-w
"code:%{http_code}"
$VALIDATION_URL
if
!
curl
-s
-X
POST
-H
"Content-Type: application/json"
-d
@
$tempfile
-w
"code:%{http_code}"
-o
$tempfile
$VALIDATION_URL
|
grep
'code:200'
;
then
if
!
curl
-s
-X
POST
-H
"Content-Type: application/json"
-d
@
$tempfile
-w
"code:%{http_code}"
-o
$tempfile
$VALIDATION_URL
|
grep
'code:200'
;
then
printf
"
`
cat
$tempfile
`
"
printf
"
`
cat
$tempfile
`
"
echo
echo
...
...
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