diff options
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml index b4b93919..e2b3f57c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,8 +12,15 @@ 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" + allow_failures: + - env: CC=clang UNITTESTS=true addons: apt: @@ -31,11 +38,12 @@ before_install: install: - ./configure --with-proxy --with-bot --with-perl=module --prefix=$HOME/irssi-build - - make CFLAGS="-Wall -Werror" + $( $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,7 +55,12 @@ before_script: - echo load perl >> irssi-test/startup - echo load proxy >> irssi-test/startup - echo ^quit >> irssi-test/startup + +script: - irssi-build/bin/irssi --home irssi-test - - cat irc.log.* + - popd + - if $UNITTESTS; then make -C tests -sk check; fi -script: true +after_script: + - cat ~/irc.log.* + - find -name test-suite.log -exec cat {} + |