.travis.sh 664 B

1234567891011121314151617181920212223242526
  1. #!/bin/sh
  2. set -eux
  3. case "$TARGET" in
  4. host)
  5. uname -a
  6. export LOADER=
  7. make ;;
  8. arm32)
  9. sudo bash -c 'echo >> /etc/apt/sources.list "deb http://archive.ubuntu.com/ubuntu/ trusty main restricted universe"'
  10. sudo apt-get update
  11. sudo apt-get -y install gcc-4.7-arm-linux-gnueabihf qemu binfmt-support
  12. make CC="arm-linux-gnueabihf-gcc-4.7"
  13. export LD_LIBRARY_PATH=/usr/arm-linux-gnueabihf/lib
  14. #export LOADER=/usr/arm-linux-gnueabihf/lib/ld-linux-armhf.so.3
  15. export LOADER="echo TESTS DISABLED ON ARM"
  16. ;;
  17. *)
  18. echo 'Unknown TARGET!'
  19. exit 1
  20. ;;
  21. esac
  22. $LOADER make check
  23. make clean && git status --ignored --porcelain && test -z "$(git status --ignored --porcelain)"