forked from so-fancy/diff-so-fancy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (36 loc) · 957 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
34
35
36
37
38
os: linux
language: perl
perl:
- dev
- 5.26
- 5.24
- 5.22
- 5.20
- 5.18
- 5.14
matrix:
include:
- os: osx
osx_image: xcode7.3
language: generic
perl: 5.24
before_install:
- git clone --depth 1 https://github.com/sstephenson/bats.git
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update;
brew install shellcheck perl cpanminus;
mkdir -p ~/perl5;
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ trusty-backports restricted main universe";
sudo apt-get -y update;
sudo apt-get -y install shellcheck;
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:
- ./bats/bin/bats test/*.bats
- perlcritic -1 -q --theme freenode diff-so-fancy
- shellcheck *.sh