-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
33 lines (30 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
33
language: perl
perl:
- "5.28"
- "5.26"
- "5.24"
- "5.20"
- "5.18"
- "5.16"
- "5.14"
- "5.12"
- "5.10"
env: RELEASE_TESTING=1 AUTOMATED_TESTING=1 DEVEL_COVER=0
matrix:
include:
- perl: "5.30"
env: DEVEL_COVER=1
before_install:
- cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
- cpanm --notest Perl::Tidy
- cpanm --notest Test::Code::TidyAll
install:
- cpanm --quiet --installdeps --notest --force --skip-satisfied .
- if [ "$DEVEL_COVER" = "1" ]; then cpanm --quiet --notest Devel::Cover; fi
script:
- if [ "$DEVEL_COVER" = "0" ]; then perl Build.PL && ./Build test; fi
- if [ "$DEVEL_COVER" = "1" ]; then perl Build.PL && ./Build build && cover -test; fi
after_success:
- if [ "$DEVEL_COVER" = "1" ]; then cpanm --quiet --notest --skip-satisfied Devel::Cover::Report::Coveralls; fi
- if [ "$DEVEL_COVER" = "1" ]; then cover -report coveralls; fi
sudo: false