forked from metacpan/metacpan-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
73 lines (62 loc) · 2.04 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
66
67
68
69
70
71
72
73
language: perl
perl:
- "5.22"
matrix:
fast_finish: true
allow_failures:
- env: USE_CPANFILE_SNAPSHOT=false CPAN_RESOLVER=metadb PERL_CARTON_PATH=$HOME/no-snapshot HARNESS_VERBOSE=1
- env: USE_CPANFILE_SNAPSHOT=true COVERAGE=1
env:
global:
# Carton --deployment only works on the same version of perl
# that the snapshot was built from.
- DEPLOYMENT_PERL_VERSION=5.22
- DEVEL_COVER_OPTIONS="-ignore,^local/"
- PERL_CARTON_PATH=$HOME/local
- CPAN_RESOLVER=snapshot
matrix:
# Get one passing run with coverage and one passing run with Test::Vars
# checks. If run together they more than double the build time.
- USE_CPANFILE_SNAPSHOT=false CPAN_RESOLVER=metadb PERL_CARTON_PATH=$HOME/no-snapshot HARNESS_VERBOSE=1
- USE_CPANFILE_SNAPSHOT=true
- USE_CPANFILE_SNAPSHOT=true COVERAGE=1
before_install:
- git clone git://github.com/travis-perl/helpers ~/travis-perl-helpers
- source ~/travis-perl-helpers/init
- mkdir -p ~/bin
- printf '#!/bin/sh\n%s "$@" --warning=no-unknown-keyword\n' "$(which tar)" > ~/bin/tar
- chmod +x ~/bin/tar
- export PATH="$HOME/bin:$PATH"
- npm install -g less js-beautify
# Pre-install from backpan to avoid upgrade breakage.
- cpanm -n http://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/common-sense-3.6.tar.gz
- cpanm -n App::cpm Carton
install:
- cpan-install --coverage # installs converage prereqs, if enabled
- AUTHOR_TESTING=0 cpm install -L $PERL_CARTON_PATH --resolver $CPAN_RESOLVER
before_script:
- coverage-setup
script:
# Parallel tests seem to have Heisenfailures. Disable for now.
# - carton exec prove -lr -j$(test-jobs) t
- carton exec prove -lr t
after_success:
- coverage-report
notifications:
email:
recipients:
on_success: change
on_failure: always
irc: "irc.perl.org#metacpan-travis"
# Use newer travis infrastructure.
sudo: false
cache:
directories:
- local
addons:
artifacts:
debug: false
s3_region: "us-east-1"
paths:
- $TRAVIS_BUILD_DIR/cpanfile.snapshot