mirror of
https://github.com/QB64Official/qb64.git
synced 2024-08-22 03:15:07 +00:00
26 lines
1.1 KiB
Bash
Executable file
26 lines
1.1 KiB
Bash
Executable file
#!/bin/sh
|
|
|
|
if [ "$TRAVIS_OS_NAME" != "linux" ]; then exit; fi
|
|
|
|
# Prepare archives
|
|
# mainversion=`awk '$1=="Version$" {split($3, A, /\"/);print A[2];}' < source/global/version.bas`
|
|
# buildnum=`awk '$1=="BuildNum$" {split($3,A, /[\"\/]/); print A[3];}' < source/global/version.bas`
|
|
TZ=UTC now=`date +"%F-%H-%M-%S"`
|
|
filebase="/tmp/qb64_${now}_`echo ${TRAVIS_COMMIT} | sed 's/\(.......\).*$/\1/'`-${TRAVIS_BRANCH}"
|
|
rm -r .dpl
|
|
|
|
cd ..
|
|
tar --create --auto-compress --file ${filebase}_osx.tar.gz --exclude-from=qb64/.travis/common-exclusion.list --exclude-from=qb64/.travis/osx-exclusion.list qb64
|
|
tar --create --auto-compress --file ${filebase}_lnx.tar.gz --exclude-from=qb64/.travis/common-exclusion.list --exclude-from=qb64/.travis/lnx-exclusion.list qb64
|
|
#7z a -xr@qb64/.travis/common-exclusion.list -xr@qb64/.travis/win-exclusion.list ${filebase}_win.7z qb64/ > /dev/null
|
|
|
|
# Send to server
|
|
# Sometimes the connection can be a bit flakey, so try multiple times on error
|
|
for i in `seq 1 10`
|
|
do scp ${filebase}_* m6rosupy1q2t@qb64.org:autobuilds/${TRAVIS_BRANCH}/
|
|
if [ "$?" -eq 0 ]
|
|
then exit 0
|
|
fi
|
|
echo scp failed
|
|
done
|
|
|