-
Notifications
You must be signed in to change notification settings - Fork 335
/
.travis.yml
48 lines (45 loc) · 1.01 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
os: linux
language: perl
perl:
- blead
- dev
- 5.30
- 5.28
- 5.26
- 5.24
- 5.22
- 5.20
- 5.18
- 5.14
matrix:
include:
- os: osx
osx_image: xcode12.2
language: generic
perl: 5.30
allow_failures:
- perl: "blead"
addons:
homebrew:
packages:
- perl
- cpanminus
update: true
before_install:
- git submodule sync
- git submodule update --init
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
mkdir -p ~/perl5;
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
eval $(curl https://travis-perl.github.io/init) --perl;
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ trusty-backports restricted main universe";
sudo apt-get -y update;
fi
install:
- cpanm --quiet --notest --local-lib=~/perl5 local::lib
- eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
- cpanm --quiet --notest Test::Perl::Critic Perl::Critic::Freenode
script:
- perlcritic -1 -q --theme freenode diff-so-fancy
- ./test/bats/bin/bats test