2015-09-29 17:34:35 +02:00
|
|
|
sudo: false
|
2019-07-09 13:41:11 +02:00
|
|
|
dist: xenial
|
2014-07-09 22:05:52 +02:00
|
|
|
language: perl
|
|
|
|
perl:
|
2017-06-23 12:03:05 +02:00
|
|
|
# ~stretch
|
|
|
|
- "5.24-shrplib"
|
2014-07-09 22:05:52 +02:00
|
|
|
- "system-perl"
|
|
|
|
env:
|
2017-11-26 21:23:51 +01: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 14:40:40 +01:00
|
|
|
allow_failures:
|
|
|
|
- env: CC=clang UNITTESTS=true
|
2014-06-15 17:12:41 +02:00
|
|
|
|
2015-09-29 17:34:35 +02:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libperl-dev
|
|
|
|
- elinks
|
2015-01-04 01:57:21 +01:00
|
|
|
- libgcrypt11-dev
|
2019-07-09 13:41:11 +02:00
|
|
|
- libotr5-dev
|
2015-09-29 17:34:35 +02:00
|
|
|
|
2014-06-15 17:12:41 +02:00
|
|
|
before_install:
|
2014-07-09 22:05:52 +02:00
|
|
|
- perl -V
|
2019-07-09 13:41:11 +02:00
|
|
|
- pushd ~
|
|
|
|
- curl -sSLf https://github.com/ninja-build/ninja/releases/download/v1.9.0/ninja-linux.zip | funzip > bin/ninja
|
|
|
|
- chmod +x bin/ninja
|
|
|
|
- curl -sSLf https://github.com/mesonbuild/meson/releases/download/0.51.1/meson-0.51.1.tar.gz | tar xz
|
|
|
|
- ( cd bin ; ln -s ../meson-*/meson.py meson )
|
|
|
|
- curl -sSLf https://github.com/irssi-import/glib-travis-build/releases/download/2.58.3/travis-xenial-glib-2.58.3.tar.xz | tar xJ
|
|
|
|
- export PKG_CONFIG_PATH=$HOME/glib-build/lib/x86_64-linux-gnu/pkgconfig
|
2019-07-17 11:38:11 +02:00
|
|
|
- export LD_LIBRARY_PATH=$HOME/glib-build/lib/x86_64-linux-gnu
|
2019-07-09 13:41:11 +02:00
|
|
|
- popd
|
2014-06-15 17:12:41 +02:00
|
|
|
|
2016-05-18 15:32:35 +02:00
|
|
|
install:
|
2019-07-09 13:41:11 +02:00
|
|
|
- meson Build -Dwith-proxy=yes -Dwith-bot=yes -Dwith-perl=yes -Dwith-otr=yes --prefix=$HOME/irssi-build
|
|
|
|
- ninja -C Build
|
|
|
|
- ninja -C Build install
|
2016-05-18 15:32:35 +02:00
|
|
|
|
|
|
|
before_script:
|
2017-11-26 21:23:51 +01:00
|
|
|
- pushd ~
|
2016-05-18 15:32:35 +02: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 20:01:04 -07:00
|
|
|
script:
|
2017-11-26 21:23:51 +01:00
|
|
|
- irssi-build/bin/irssi --home irssi-test
|
|
|
|
- popd
|
2019-07-09 13:41:11 +02:00
|
|
|
- if $UNITTESTS; then ninja -C Build test; fi
|
2017-11-26 21:23:51 +01:00
|
|
|
|
|
|
|
after_script:
|
2017-12-07 12:08:20 +01:00
|
|
|
- cat ~/irc.log.*
|
2019-07-09 13:41:11 +02:00
|
|
|
- find -name testlog.txt -exec sed -i -e '/Inherited environment:.* TRAVIS/d' {} + -exec cat {} +
|