Skip to content

Commit

Permalink
BUILD: Enable unit tests in Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMcCoy committed Dec 23, 2016
1 parent 535d3e1 commit 0a4bc8c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,17 @@ matrix:
env: USECMAKE=1

script:
# Configure, autotools
- if [ \( "$COVERITY_SCAN_BRANCH" != 1 \) -a \( $USECMAKE -eq 0 \) ]; then ./autogen.sh; fi
- if [ \( "$COVERITY_SCAN_BRANCH" != 1 \) -a \( $USECMAKE -eq 0 \) ]; then ./configure || cat config.log; fi
# Configure, CMake
- if [ \( "$COVERITY_SCAN_BRANCH" != 1 \) -a \( $USECMAKE -eq 1 \) ]; then cmake .; fi
# Compile
- if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then make -j4; fi
# Unit tests, autotools
- if [ \( "$COVERITY_SCAN_BRANCH" != 1 \) -a \( $USECMAKE -eq 0 \) ]; then echo "" > test-suite.log; make -j4 check || cat test-suite.log; fi
# Unit tests, CMake
- if [ \( "$COVERITY_SCAN_BRANCH" != 1 \) -a \( $USECMAKE -eq 1 \) ]; then make -j4 check; fi

addons:
apt:
Expand Down

0 comments on commit 0a4bc8c

Please sign in to comment.