/
.travis.yml
32 lines (32 loc) · 1.23 KB
/
.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: perl
perl:
- "5.20"
- "5.18"
- "5.16"
- "5.14"
- "5.12"
- "5.10"
- "5.8"
matrix:
include:
- perl: "5.18"
env: WITH_JSON_XS=1 WITH_YAML_SYCK=1
- perl: "5.18"
env: WITH_JSON=1 WITH_YAML=1
- perl: "5.18"
env: WITH_YAML_SYCK=1
- perl: "5.18"
env: WITH_YAML=1
- perl: "5.18"
env: WITH_JSON=1 WITH_YAML=1 WITH_IPC_RUN=1 DO_COVERALLS=1
before_install:
- '[ "$DO_COVERALLS" = 1 ] && cpanm --quiet --notest Devel::Cover::Report::Coveralls || true'
- '[ "$WITH_JSON_XS" = 1 ] && cpanm --quiet --notest JSON::XS || true'
- '[ "$WITH_JSON" = 1 ] && cpanm --quiet --notest JSON || true'
- '[ "$WITH_YAML_SYCK" = 1 ] && cpanm --quiet --notest YAML::Syck || true'
- '[ "$WITH_YAML" = 1 ] && cpanm --quiet --notest YAML || true'
- '[ "$WITH_IPC_RUN" = 1 ] && cpanm --quiet --notest IPC::Run || true'
script:
- '[ "$DO_COVERALLS" = 1 ] && perl Makefile.PL && make && cover -test -report coveralls || true'
- '[ "$DO_COVERALLS" != 1 ] && perl Makefile.PL && make all test || true'
sudo: false