diff --git a/.travis.yml b/.travis.yml index 80fddd52b8b..3eb3fc5d243 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,20 +1,22 @@ --- +sudo: false before_install: - export HARNESS_OPTIONS=j10:c HARNESS_TIMER=1 - rm .travis.yml - git config --global user.name "Dist Zilla Plugin TravisCI" - git config --global user.email $HOSTNAME":not-for-mail@travis-ci.org" - - sudo apt-get update -qq - - sudo apt-get install -y libmpfr-dev + - chmod 755 install_mpfr.sh + - ./install_mpfr.sh install: - cpanm --quiet --notest --skip-installed Dist::Zilla - dzil authordeps | grep -ve '^\W' | xargs -n 5 -P 10 cpanm --quiet --notest --skip-installed - dzil listdeps | grep -ve '^\W' | cpanm --quiet --notest --skip-installed - cpanm --quiet --notest App::DuckPAN autodie +after_install: - duckpan DDG language: perl perl: - 5.16 - 5.18 script: - - dzil smoke --release --author + - dzil smoke --release --author \ No newline at end of file diff --git a/dist.ini b/dist.ini index bab69190c7e..496b883c26b 100644 --- a/dist.ini +++ b/dist.ini @@ -133,7 +133,4 @@ push_to = origin master perl_version = 5.16 perl_version = 5.18 extra_dep = App::DuckPAN -extra_dep = autodie -after_install = duckpan DDG -before_install = sudo apt-get update -qq -before_install = sudo apt-get install -y libmpfr-dev +extra_dep = autodie \ No newline at end of file diff --git a/install_mpfr.sh b/install_mpfr.sh new file mode 100644 index 00000000000..c411bf50c59 --- /dev/null +++ b/install_mpfr.sh @@ -0,0 +1,7 @@ +#!/bin/sh +set -ex + +# download and install mpfr for Chinese Zodiac Goodie +wget http://www.mpfr.org/mpfr-current/mpfr-3.1.2.tar.gz +tar -xzvf mpfr-3.1.2.tar.gz +cd mpfr-3.1.2 && ./configure --prefix=/usr && make && make check && make install \ No newline at end of file