Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lwc
/
compare
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Pipelines
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
dbbd736b
authored
Aug 04, 2020
by
Enrico Pozzobon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upload script
parent
7c967ca5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
upload-result.sh
+26
-0
No files found.
upload-result.sh
0 → 100755
View file @
dbbd736b
#!/bin/bash
i
=
$1
if
[[
-z
$AUTH_HEADER
]]
;
then
echo
"Please provide
\$
AUTH_HEADER"
;
exit
;
fi
if
[[
-z
$i
]]
;
then
echo
"Please provide index of result to send"
fi
echo
"Fetching result
$i
..."
;
curl
"http://localhost:5002/results/
$i
/results.json"
-f
-o
result.json
||
{
curl
"http://localhost:5002/restart_test/
$i
"
exit
;
}
echo
"Sending results
$i
..."
;
curl
'https://lwc.las3.de/admin/insert-result.php'
\
-f
-H
"
$AUTH_HEADER
"
\
--data
"
$(
cat
result.json
)
"
||
exit
echo
"Sent."
;
curl
"http://localhost:5002/delete_test/
$i
"
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