Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Update Travis to use faster container-based (Docker) infrastructure #877

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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":[email protected]"
- 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
5 changes: 1 addition & 4 deletions dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 7 additions & 0 deletions install_mpfr.sh
Original file line number Diff line number Diff line change
@@ -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