Skip to content

Commit

Permalink
CI: test a non OpenMP build
Browse files Browse the repository at this point in the history
  • Loading branch information
claudioandre-br committed Nov 27, 2016
1 parent 40f0aae commit 530fc8a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Expand Up @@ -20,11 +20,15 @@ matrix:

- env: ASAN="" TEST="TS --restore"

- env: ASAN="" TEST="no OpenMP" OPENCL="yes"

allow_failures:
- env: ASAN="--enable-asan" TEST="fresh test"

- env: ASAN="" TEST="TS --restore"

- env: ASAN="" TEST="no OpenMP" OPENCL="yes"

fast_finish: true

before_install:
Expand Down
14 changes: 14 additions & 0 deletions .travis/check.sh
Expand Up @@ -14,6 +14,20 @@ if [[ -z "$TEST" ]]; then

../.travis/test.sh

elif [[ "$TEST" == "no OpenMP" ]]; then
cd src

# Prepare environment
sudo apt-get update -qq
sudo apt-get install libssl-dev yasm libgmp-dev libpcap-dev pkg-config debhelper libnet1-dev
sudo apt-get install fglrx-dev opencl-headers || true

# Configure and build
./configure $ASAN --disable-native-tests --disable-openmp
make -sj4

../.travis/test.sh

elif [[ "$TEST" == "fresh test" ]]; then
# ASAN using a 'recent' compiler
docker run -v $HOME:/root -v $(pwd):/cwd ubuntu:latest sh -c " \
Expand Down

0 comments on commit 530fc8a

Please sign in to comment.