From a026a602c9cb46eaed05115f27843f24dfd3c213 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Thu, 18 Dec 2014 17:19:10 +0000 Subject: [PATCH] Added Travis test script This builds Openlibm on the Travis build host (x86) and also cross-compiles to ARM. Note: the tests currently fail on ARM, as noted in https://github.com/JuliaLang/openlibm/issues/18 --- .travis.sh | 22 ++++++++++++++++++++++ .travis.yml | 5 +++++ 2 files changed, 27 insertions(+) create mode 100755 .travis.sh create mode 100644 .travis.yml diff --git a/.travis.sh b/.travis.sh new file mode 100755 index 00000000..8de1885f --- /dev/null +++ b/.travis.sh @@ -0,0 +1,22 @@ +#!/bin/sh +set -eux + +case "$TARGET" in +host) + uname -a + export LOADER= + make ;; +arm32) + sudo apt-get -y install gcc-4.6-arm-linux-gnueabihf qemu binfmt-support + make CC="arm-linux-gnueabihf-gcc-4.6" + export LD_LIBRARY_PATH=/usr/arm-linux-gnueabihf/lib + export LOADER=/usr/arm-linux-gnueabihf/lib/ld-linux-armhf.so.3 + ;; +*) + 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 00000000..4d2850fa --- /dev/null +++ b/.travis.yml @@ -0,0 +1,5 @@ +language: c +script: ./.travis.sh +env: +- TARGET=host +- TARGET=arm32