2015-09-29 17:34:35 +02:00
|
|
|
sudo: false
|
2014-07-09 22:05:52 +02:00
|
|
|
language: perl
|
|
|
|
|
perl:
|
|
|
|
|
- "5.20-shrplib"
|
|
|
|
|
- "5.18-shrplib"
|
|
|
|
|
- "system-perl"
|
|
|
|
|
env:
|
|
|
|
|
- CC=clang
|
|
|
|
|
- CC=gcc
|
2014-06-15 17:12:41 +02:00
|
|
|
|
2015-09-29 17:34:35 +02:00
|
|
|
addons:
|
|
|
|
|
apt:
|
|
|
|
|
packages:
|
|
|
|
|
- libperl-dev
|
|
|
|
|
- elinks
|
|
|
|
|
|
2014-06-15 17:12:41 +02:00
|
|
|
before_install:
|
2014-07-09 22:05:52 +02:00
|
|
|
- perl -V
|
2016-09-16 00:26:19 +02:00
|
|
|
- version="$(git describe --dirty --long --always --tags | tr -- '-|' '+-')"
|
|
|
|
|
- sed -i -e "s|AC_INIT(irssi,.*|AC_INIT(irssi, $version)|" configure.ac
|
2016-05-18 15:32:35 +02:00
|
|
|
- ./autogen.sh --with-proxy --with-bot --with-perl=module
|
|
|
|
|
- make dist
|
|
|
|
|
- cd ..
|
|
|
|
|
- tar xaf */irssi-*.tar.*
|
|
|
|
|
- cd irssi-*
|
2016-09-16 00:26:19 +02:00
|
|
|
- cp -a "$TRAVIS_BUILD_DIR"/.git .
|
|
|
|
|
- git checkout -b build/autoconf
|
|
|
|
|
- git add -A .
|
|
|
|
|
- git config user.email 'source@irssi.org'
|
|
|
|
|
- git config user.name 'Irssi Source Helper'
|
|
|
|
|
- git commit -q -m 'autoconf for '"$version $TRAVIS_COMMIT"$'\n\n''[skip ci]'
|
|
|
|
|
- |
|
|
|
|
|
if [ "$TRAVIS_PULL_REQUEST" = false ] && [ "$TRAVIS_BRANCH" = "master" ] && [ "${TRAVIS_JOB_NUMBER##*.}" = 1 ] && $TRAVIS_SECURE_ENV_VARS; then
|
|
|
|
|
git config remote.origin.url git@github.com:$TRAVIS_REPO_SLUG
|
|
|
|
|
echo "$PUSHKEY" > ~/.ssh/id_rsa
|
|
|
|
|
git push -f -u origin build/autoconf
|
|
|
|
|
fi
|
|
|
|
|
- unset PUSHKEY
|
2014-06-15 17:12:41 +02:00
|
|
|
|
2016-05-18 15:32:35 +02:00
|
|
|
install:
|
|
|
|
|
- ./configure --with-proxy --with-bot --with-perl=module --prefix=$HOME/irssi-build
|
2015-10-03 19:07:08 +02:00
|
|
|
- make CFLAGS="-Wall -Werror"
|
2015-09-29 17:34:35 +02:00
|
|
|
- make install
|
2016-05-18 15:32:35 +02:00
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
|
- cd
|
|
|
|
|
- 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
|
|
|
|
|
- irssi-build/bin/irssi --home irssi-test
|
|
|
|
|
- cat irc.log.*
|
|
|
|
|
|
|
|
|
|
script: true
|