mirror of
https://github.com/wfjm/w11.git
synced 2026-03-10 04:54:26 +00:00
26 lines
677 B
Bash
Executable File
26 lines
677 B
Bash
Executable File
#!/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
|