mirror of
https://git.planet-casio.com/Lephenixnoir/OpenLibm.git
synced 2024-12-28 20:43:41 +01:00
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
This commit is contained in:
parent
9c1af7f81e
commit
9101f61238
2 changed files with 30 additions and 0 deletions
25
.travis.sh
Executable file
25
.travis.sh
Executable file
|
@ -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
|
5
.travis.yml
Normal file
5
.travis.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
language: c
|
||||||
|
script: ./.travis.sh
|
||||||
|
env:
|
||||||
|
- TARGET=host
|
||||||
|
- TARGET=arm32
|
Loading…
Reference in a new issue