diff --git a/.travis.yml b/.travis.yml index 7619680c2..8c49ccdb4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,10 +6,10 @@ language: c compiler: gcc before_install: - echo "deb https://dl.bintray.com/rwth-os/hermitcore vivid main" | sudo tee -a /etc/apt/sources.list - - sudo apt-get -qq update - - sudo apt-get install -y curl qemu-system-x86 nasm texinfo libmpfr-dev libmpc-dev libgmp-dev libisl-dev flex bison packaging-dev + - travis_retry sudo apt-get -qq update + - travis_retry sudo apt-get install -y curl qemu-system-x86 nasm texinfo libmpfr-dev libmpc-dev libgmp-dev libisl-dev flex bison packaging-dev #- sudo apt-get install -y --force-yes binutils-hermit gcc-hermit-bootstrap - - sudo apt-get install -y --force-yes binutils-hermit libhermit newlib-hermit pthread-embedded-hermit gcc-hermit + - travis_retry sudo apt-get install -y --force-yes binutils-hermit libhermit newlib-hermit pthread-embedded-hermit gcc-hermit - git submodule update --init lwip usr/libomp script: @@ -20,6 +20,7 @@ script: - debuild -e PATH -us -uc -j2 - sudo dpkg -i ../libhermit*_amd64.deb - make -j2 examples + - if [ "$TRAVIS_BRANCH" != "production" ]; then make test; fi deploy: on: production diff --git a/Makefile.in b/Makefile.in index 02dd1e93d..c83570739 100644 --- a/Makefile.in +++ b/Makefile.in @@ -196,7 +196,7 @@ examples: PROFILING_CFLAGS="$(PROFILING_CFLAGS)" \ PROFILING_LDFLAGS="$(PROFILING_LDFLAGS)" -C usr examples -test: demo +test: . ./test.sh qemu: diff --git a/test.sh b/test.sh index 4409b3da7..c29469b81 100644 --- a/test.sh +++ b/test.sh @@ -4,7 +4,7 @@ # it is written only for internal tests via Travis CI FILES="usr/tests/hello usr/tests/hellof usr/tests/hello++ usr/tests/thr_hello usr/tests/pi usr/benchmarks/stream usr/benchmarks/basic" -PROXY=tools/proxy +PROXY=/opt/hermit/bin/proxy for f in $FILES; do echo "check $f..."; $PROXY $f || exit 1; done