diff --git a/.travis.sh b/.travis.sh new file mode 100755 index 0000000..9c03ba4 --- /dev/null +++ b/.travis.sh @@ -0,0 +1,25 @@ +#!/bin/sh +set -eux + +case "$TARGET" in +host) + uname -a + export LOADER= + make ;; +arm32) + sudo bash -c 'echo >> /etc/apt/sources.list "deb http://archive.ubuntu.com/ubuntu/ trusty main restricted universe"' + sudo apt-get update + sudo apt-get -y install gcc-4.7-arm-linux-gnueabihf qemu binfmt-support + make CC="arm-linux-gnueabihf-gcc-4.7" + export LD_LIBRARY_PATH=/usr/arm-linux-gnueabihf/lib + #export LOADER=/usr/arm-linux-gnueabihf/lib/ld-linux-armhf.so.3 + export LOADER="echo TESTS DISABLED ON ARM" + ;; +*) + echo 'Unknown TARGET!' + exit 1 + ;; +esac + +$LOADER ./test/test-double +$LOADER ./test/test-float diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..4d2850f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,5 @@ +language: c +script: ./.travis.sh +env: +- TARGET=host +- TARGET=arm32