This repository has been archived by the owner on Jan 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy path.travis.yml
65 lines (64 loc) · 1.69 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
language: perl
os:
- linux
- osx
dist: trusty
perl:
- "5.22"
- "5.20"
- "5.18"
- "5.16"
- "5.14"
sudo: false
before_install:
# install perlbrew on osx
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
curl -L http://install.perlbrew.pl | bash;
echo "source ~/perl5/perlbrew/etc/bashrc" >> ~/.bash_profile;
source ~/perl5/perlbrew/etc/bashrc;
which perlbrew;
perlbrew init;
perlversion=$(perlbrew available | grep -m 1 "$TRAVIS_PERL_VERSION." | xargs | grep -o "[0-9.]\+");
echo "Resolved to version $perlversion";
perlbrew install $perlversion --notest -j 5 --switch --noman;
perlbrew use $perlversion;
perlbrew install-cpanm --force;
fi
# end of perl version install
- echo $TRAVIS_PERL_VERSION
- nvm install $(cat .nvmrc)
- nvm use $(cat .nvmrc)
- perl --version
- node --version
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.3.2
- export PATH=$HOME/.yarn/bin:$PATH
# - export PERL5OPT="-I${HOME}/perl5/lib/perl5"
- echo $PERL5OPT
- echo $TRAVIS_OS_NAME
- cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
- cpanm PadWalker
cache:
yarn: true
bundler: true
directories:
- node_modules # NPM packages
- $HOME/perl5/perlbrew # Perl distributions
install:
- travis_retry yarn
stages:
- test
- name: release
if: branch = master AND type = push AND fork = false
script:
- yarn tslint
- yarn test
jobs:
include:
- stage: release
language: node_js
node_js: '8'
script:
- yarn semantic-release
branches:
except:
- /^v\d+\.\d+\.\d+$/