Skip to content

Commit

Permalink
use docker
Browse files Browse the repository at this point in the history
  • Loading branch information
skaji committed Aug 3, 2019
1 parent 76e59f6 commit 7497257
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
language: perl
perl:
- '5.8'
- '5.10'
- '5.16'
- '5.30'
addons:
apt:
packages:
- libdb-dev
install:
- curl -fsSL --compressed https://git.io/cpm | perl - install -g --with-develop --with-recommends
language: minimal
services: docker
env:
- image=perl:5.8
- image=perl:5.10
- image=perl:5.16
- image=perl:5.30
before_install:
- docker pull $image
- docker run $image perl -V
script:
- prove -lr --timer t xt
- |
docker run --init -it -v $PWD:/$TRAVIS_REPO_SLUG -w /$TRAVIS_REPO_SLUG $image bash -c '
set -euxo pipefail
apt-get -qq update && apt-get -qq install -y unzip libdb-dev
curl -fsSL --compressed https://git.io/cpm | perl - install -g --with-develop --with-recommends
prove -lr --timer t xt
'

0 comments on commit 7497257

Please sign in to comment.