Update .travis.yml
This commit is contained in:
+17
-32
@@ -79,7 +79,22 @@ env:
|
|||||||
- 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: |
|
jobs:
|
||||||
|
include:
|
||||||
|
- name: 32bits
|
||||||
|
- script: |
|
||||||
|
./danio_gcc.sh ${t} 32
|
||||||
|
for i in `ls out/*.txz | 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
|
||||||
|
- name: 64bits
|
||||||
|
- script: |
|
||||||
|
./danio_gcc.sh ${t} 64
|
||||||
|
for i in `ls out/*.txz | 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
|
||||||
|
|
||||||
|
before_jobs: |
|
||||||
chmod +x -v *.sh
|
chmod +x -v *.sh
|
||||||
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
||||||
sudo apt update -qq
|
sudo apt update -qq
|
||||||
@@ -88,36 +103,6 @@ before_script: |
|
|||||||
else
|
else
|
||||||
brew install rsync gcc git gnupg flex bison gperf gperftools m4 zip unzip curl zlib docbook-xsl gettext texinfo texi2html
|
brew install rsync gcc git gnupg flex bison gperf gperftools m4 zip unzip curl zlib docbook-xsl gettext texinfo texi2html
|
||||||
fi
|
fi
|
||||||
script: |
|
|
||||||
build()
|
|
||||||
{
|
|
||||||
(
|
|
||||||
echo "danio-gcc32"
|
|
||||||
./danio_gcc.sh ${t} 32 1>/dev/null 2>error.log
|
|
||||||
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 1>/dev/null 2>error.log
|
|
||||||
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:
|
||||||
- tail -n 1000 error.log
|
- grep "Error:" logs/*.log
|
||||||
|
|||||||
Reference in New Issue
Block a user