some new tasks for travis

This commit is contained in:
Ailin Nemui 2016-09-16 00:26:19 +02:00
commit f6e2b095ed

View file

@ -16,11 +16,26 @@ addons:
before_install: before_install:
- perl -V - perl -V
- version="$(git describe --dirty --long --always --tags | tr -- '-|' '+-')"
- sed -i -e "s|AC_INIT(irssi,.*|AC_INIT(irssi, $version)|" configure.ac
- ./autogen.sh --with-proxy --with-bot --with-perl=module - ./autogen.sh --with-proxy --with-bot --with-perl=module
- make dist - make dist
- cd .. - cd ..
- tar xaf */irssi-*.tar.* - tar xaf */irssi-*.tar.*
- cd irssi-* - cd irssi-*
- 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
install: install:
- ./configure --with-proxy --with-bot --with-perl=module --prefix=$HOME/irssi-build - ./configure --with-proxy --with-bot --with-perl=module --prefix=$HOME/irssi-build