1
0
mirror of https://github.com/wfjm/w11.git synced 2026-03-09 20:48:30 +00:00

add deploy

This commit is contained in:
wfjm
2018-10-21 13:58:37 +02:00
parent 90db21ac5e
commit 415b0940ba
2 changed files with 30 additions and 3 deletions

View File

@@ -27,9 +27,9 @@ before_install:
libusb-1.0-0-dev \
tcl8.6 tcl8.6-dev tcllib tclreadline \
libyaml-libyaml-perl
- wget https://www.retro11.de/data/oc_w11/travis/allsim.tbz
- tar -tvf allsim.tbz | perl -pe 's/^.*\s(\d\d\d\d-)/$1/'
- tar -xvf allsim.tbz
- wget https://www.retro11.de/data/oc_w11/travis/allsim.tgz
- tar -tvf allsim.tgz | perl -pe 's/^.*\s(\d\d\d\d-)/$1/'
- tar -xvf allsim.tgz && rm allsim.tgz
- eval "${MATRIX_EVAL}"
#
@@ -70,3 +70,5 @@ script:
-tag default,sys_w11a,stim1 \
-tag default,sys_w11a,n4
- tbfilt -all -sum -comp
#
- .travis/deploy.sh

25
.travis/deploy.sh Executable file
View File

@@ -0,0 +1,25 @@
#!/bin/bash
# get environment
printenv | sort | grep "^TRAVIS_" > environment.log
# get tbfilt summary
tbfilt -all -sum -comp > tbfilt.log
# setup list of files to deploy
echo "environment.log" > deploy.lst
echo "tbfilt.log" >> deploy.lst
find -regextype egrep -regex '.*/tb_.*_[bfsorept]sim(_.*)?\.log' |\
sort >> deploy.lst
# create tarball
tar -czf deploy.tgz -T deploy.lst
# upload
curl -w "status: %{http_code} send: %{size_upload} speed: %{speed_upload}\n" \
-F 'trepo=w11' \
-F "tbldnum=$TRAVIS_BUILD_NUMBER" \
-F "tjobnum=$TRAVIS_JOB_NUMBER" \
-F 'upfile=@deploy.tgz' \
https://www.retro11.de/cgi-bin/upload_tdeploy.cgi > deploy.log
cat deploy.log