diff options
-rw-r--r-- | .travis.yml | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/.travis.yml b/.travis.yml index 1e04d943..a6ff601f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,8 +12,13 @@ perl: # - "5.18-shrplib" - "system-perl" env: - - CC=clang - - CC=gcc + - CC=clang UNITTESTS=false + - CC=gcc UNITTESTS=false + - CC=clang UNITTESTS=true +matrix: + exclude: + - env: CC=clang UNITTESTS=true + perl: "system-perl" addons: apt: @@ -31,11 +36,12 @@ before_install: install: - ./configure --with-proxy --with-bot --with-perl=module --prefix=$HOME/irssi-build + $( $UNITTESTS && echo --enable-always-build-tests ) - make CFLAGS="-Wall -Werror -Werror=declaration-after-statement" - make install before_script: - - cd + - pushd ~ - mkdir irssi-test - echo echo automated irssi launch test > irssi-test/startup; echo ^set settings_autosave off >> irssi-test/startup; @@ -47,9 +53,12 @@ before_script: - echo load perl >> irssi-test/startup - echo load proxy >> irssi-test/startup - echo ^quit >> irssi-test/startup - - irssi-build/bin/irssi --home irssi-test - - cat irc.log.* - - cd $TRAVIS_BUILD_DIR script: - - make check + - irssi-build/bin/irssi --home irssi-test + - popd + - if $UNITTESTS; then make -C tests -sk check; fi + +after_script: + - cat ~/irc.log.*; + find -name test-suite.log -exec cat {} + |