summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorailin-nemui <ailin-nemui@users.noreply.github.com>2017-11-26 21:23:51 +0100
committerailin-nemui <ailin-nemui@users.noreply.github.com>2017-12-07 12:07:37 +0100
commitd6458304d7dba0644fb4b682e09baf0acebdbb97 (patch)
tree0f5562b82a657b656bd9b4fda9cbff532c6c58a2 /.travis.yml
parentd932e6e4b78383e0874721a76a8480a9a7e03667 (diff)
downloadirssi-d6458304d7dba0644fb4b682e09baf0acebdbb97.zip
mess with travis
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml23
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 {} +