Update .travis.yml
This commit is contained in:
+41
-26
@@ -6,32 +6,6 @@ compiler:
|
|||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
- osx
|
- osx
|
||||||
before_jobs:
|
|
||||||
- script: |
|
|
||||||
chmod +x -v *.sh
|
|
||||||
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
|
||||||
sudo apt update -qq
|
|
||||||
sudo apt install -qq -y rsync sshpass git-core gnupg flex bison lftp gperf m4 build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev libx11-dev lib32z-dev libxml2-utils xsltproc schedtool gettext texinfo
|
|
||||||
sudo apt-get clean
|
|
||||||
else
|
|
||||||
brew install rsync gcc git gnupg flex bison gperf gperftools m4 zip unzip curl zlib docbook-xsl gettext texinfo texi2html
|
|
||||||
fi
|
|
||||||
jobs:
|
|
||||||
include:
|
|
||||||
- &deploy
|
|
||||||
stage: deploy
|
|
||||||
script: skip
|
|
||||||
before_deploy:
|
|
||||||
- ./danio_gcc.sh ${t} 32
|
|
||||||
- ./danio_gcc.sh ${t} 64
|
|
||||||
- export TRAVIS_TAG="build-${TRAVIS_BUILD_NUMBER}"
|
|
||||||
deploy:
|
|
||||||
api_key: ${GITHUB_TOKEN}
|
|
||||||
file: out/*.txz
|
|
||||||
file_glob: true
|
|
||||||
provider: releases
|
|
||||||
skip_cleanup: true
|
|
||||||
- <<: *deploy
|
|
||||||
env:
|
env:
|
||||||
- t=aarch64-danio-linux METHOD=newlib
|
- t=aarch64-danio-linux METHOD=newlib
|
||||||
- t=alpha-danio-linux METHOD=newlib
|
- t=alpha-danio-linux METHOD=newlib
|
||||||
@@ -104,5 +78,46 @@ jobs:
|
|||||||
- t=m32r-danio-linux METHOD=glibc
|
- t=m32r-danio-linux METHOD=glibc
|
||||||
- t=tilepro-danio-linux METHOD=glibc
|
- t=tilepro-danio-linux METHOD=glibc
|
||||||
- t=tilegx-danio-linux METHOD=glibc
|
- t=tilegx-danio-linux METHOD=glibc
|
||||||
|
|
||||||
|
before_script: |
|
||||||
|
chmod +x -v *.sh
|
||||||
|
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
||||||
|
sudo apt update -qq
|
||||||
|
sudo apt install -qq -y rsync sshpass git-core gnupg flex bison lftp gperf m4 build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev libx11-dev lib32z-dev libxml2-utils xsltproc schedtool gettext texinfo
|
||||||
|
sudo apt-get clean
|
||||||
|
else
|
||||||
|
brew install rsync gcc git gnupg flex bison gperf gperftools m4 zip unzip curl zlib docbook-xsl gettext texinfo texi2html
|
||||||
|
fi
|
||||||
|
script: |
|
||||||
|
build()
|
||||||
|
{
|
||||||
|
(
|
||||||
|
echo "danio-gcc32"
|
||||||
|
./danio_gcc.sh ${t} 32
|
||||||
|
for i in `ls out | sort`; do
|
||||||
|
sshpass -p "${passwd}" rsync -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" -Pv out/${i} ${login}@${url}:/home/frs/project/danio-gcc/32bits
|
||||||
|
done
|
||||||
|
echo "danio-gcc64"
|
||||||
|
./danio_gcc.sh ${t} 64
|
||||||
|
for i in `ls out | sort`; do
|
||||||
|
sshpass -p "${passwd}" rsync -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" -Pv out/${i} ${login}@${url}:/home/frs/project/danio-gcc/64bits
|
||||||
|
done
|
||||||
|
) &
|
||||||
|
local build_pid=$!
|
||||||
|
{
|
||||||
|
while :; do
|
||||||
|
sleep 300
|
||||||
|
printf "Builder is still running...\r"
|
||||||
|
done
|
||||||
|
} &
|
||||||
|
local runner_pid=$!
|
||||||
|
wait $build_pid 2>/dev/null
|
||||||
|
local result=$?
|
||||||
|
kill $runner_pid
|
||||||
|
wait $runner_pid 2>/dev/null
|
||||||
|
return $result
|
||||||
|
}
|
||||||
|
build
|
||||||
|
|
||||||
after_failure:
|
after_failure:
|
||||||
- grep "Error:" logs/*.log
|
- grep "Error:" logs/*.log
|
||||||
|
|||||||
Reference in New Issue
Block a user