/
.travis.yml
32 lines (32 loc) · 952 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
language: minimal
services: docker
env:
- image=perl:5.32
- image=perl:5.30
- image=perl:5.28
- image=perl:5.26
- image=perl:5.24
- image=perl:5.22
- image=perl:5.20
- image=perl:5.18
before_install:
- docker pull $image
- docker run $image perl -V
script:
- |
docker run --init --rm -it -v $PWD:/run/lib/YATT -w /run/lib/YATT \
-e COVERALLS_REPO_TOKEN \
-e TRAVIS_BRANCH \
-e YATT_TRAVIS_OPTS \
$image bash -c '
set -euxo pipefail
if [[ -r .git/config ]]; then git checkout $TRAVIS_BRANCH; else echo NO GIT; fi
curl -fsSL --compressed https://git.io/cpm > cpm
chmod +x cpm
./cpm install -g Test::Requires B::Debug Devel::Cover Devel::Cover::Report::Coveralls
./cpm install -g --with-recommends --with-test --cpanfile=./cpanfile
apt update; apt install -y zsh
t/runtests.zsh -C $YATT_TRAVIS_OPTS
cover -report coveralls /run/lib/YATT/t/cover_db
echo DONE
'