2015-09-29 11:34:35 -04:00
|
|
|
sudo: false
|
2017-06-23 06:03:05 -04:00
|
|
|
dist: trusty
|
2014-07-09 16:05:52 -04:00
|
|
|
language: perl
|
|
|
|
perl:
|
2017-06-23 06:03:05 -04:00
|
|
|
# ~stretch
|
|
|
|
- "5.24-shrplib"
|
|
|
|
# ~xenial
|
|
|
|
# - "5.22-shrplib"
|
|
|
|
# ~jessie
|
|
|
|
# - "5.20-shrplib"
|
|
|
|
# ~trusty
|
|
|
|
# - "5.18-shrplib"
|
2014-07-09 16:05:52 -04:00
|
|
|
- "system-perl"
|
|
|
|
env:
|
2017-11-26 15:23:51 -05:00
|
|
|
- CC=clang UNITTESTS=false
|
|
|
|
- CC=gcc UNITTESTS=false
|
|
|
|
- CC=clang UNITTESTS=true
|
|
|
|
matrix:
|
|
|
|
exclude:
|
|
|
|
- env: CC=clang UNITTESTS=true
|
|
|
|
perl: "system-perl"
|
2017-11-29 08:40:40 -05:00
|
|
|
allow_failures:
|
|
|
|
- env: CC=clang UNITTESTS=true
|
2014-06-15 11:12:41 -04:00
|
|
|
|
2015-09-29 11:34:35 -04:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libperl-dev
|
|
|
|
- elinks
|
2015-01-03 19:57:21 -05:00
|
|
|
- libgcrypt11-dev
|
2015-09-29 11:34:35 -04:00
|
|
|
|
2014-06-15 11:12:41 -04:00
|
|
|
before_install:
|
2014-07-09 16:05:52 -04:00
|
|
|
- perl -V
|
2015-01-03 19:57:21 -05:00
|
|
|
- wget https://otr.cypherpunks.ca/libotr-4.1.1.tar.gz
|
|
|
|
- tar zxf libotr-*.tar.gz
|
|
|
|
- cd libotr-*
|
|
|
|
- ./configure --prefix $HOME/otr-prefix && make && make install
|
|
|
|
- cd ..
|
|
|
|
- ./autogen.sh --with-proxy --with-bot --with-perl=module --with-otr=yes --with-libotr-prefix=$HOME/otr-prefix/lib --with-libotr-inc-prefix=$HOME/otr-prefix/include
|
2016-05-18 09:32:35 -04:00
|
|
|
- make dist
|
|
|
|
- cd ..
|
|
|
|
- tar xaf */irssi-*.tar.*
|
|
|
|
- cd irssi-*
|
2014-06-15 11:12:41 -04:00
|
|
|
|
2016-05-18 09:32:35 -04:00
|
|
|
install:
|
2015-01-03 19:57:21 -05:00
|
|
|
- ./configure --with-proxy --with-bot --with-perl=module --with-otr=yes --with-libotr-prefix=$HOME/otr-prefix/lib --with-libotr-inc-prefix=$HOME/otr-prefix/include --prefix=$HOME/irssi-build
|
2017-11-26 15:23:51 -05:00
|
|
|
$( $UNITTESTS && echo --enable-always-build-tests )
|
2017-11-29 09:53:12 -05:00
|
|
|
- make CFLAGS="-Wall -Werror -Werror=declaration-after-statement"
|
2015-09-29 11:34:35 -04:00
|
|
|
- make install
|
2016-05-18 09:32:35 -04:00
|
|
|
|
|
|
|
before_script:
|
2017-11-26 15:23:51 -05:00
|
|
|
- pushd ~
|
2016-05-18 09:32:35 -04:00
|
|
|
- mkdir irssi-test
|
|
|
|
- echo echo automated irssi launch test > irssi-test/startup;
|
|
|
|
echo ^set settings_autosave off >> irssi-test/startup;
|
|
|
|
echo ^set -clear log_close_string >> irssi-test/startup;
|
|
|
|
echo ^set -clear log_day_changed >> irssi-test/startup;
|
|
|
|
echo ^set -clear log_open_string >> irssi-test/startup;
|
|
|
|
echo ^set log_timestamp '* ' >> irssi-test/startup;
|
|
|
|
echo ^window log on >> irssi-test/startup
|
|
|
|
- echo load perl >> irssi-test/startup
|
|
|
|
- echo load proxy >> irssi-test/startup
|
|
|
|
- echo ^quit >> irssi-test/startup
|
|
|
|
|
2017-10-21 23:01:04 -04:00
|
|
|
script:
|
2017-11-26 15:23:51 -05:00
|
|
|
- irssi-build/bin/irssi --home irssi-test
|
|
|
|
- popd
|
|
|
|
- if $UNITTESTS; then make -C tests -sk check; fi
|
|
|
|
|
|
|
|
after_script:
|
2017-12-07 06:08:20 -05:00
|
|
|
- cat ~/irc.log.*
|
|
|
|
- find -name test-suite.log -exec cat {} +
|