forked from RexOps/Rex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
94 lines (94 loc) · 3.67 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
jobs:
include:
- stage: test
language: perl
perl:
- "5.30"
env:
- AUTHOR_TESTING=1 RELEASE_TESTING=1 PERL_CPANM_OPT="--quiet --notest"
cache:
directories:
- ${PERLBREW_ROOT}/perls/${PERLBREW_PERL}/lib
- ${PERLBREW_ROOT}/perls/${PERLBREW_PERL}/bin
addons:
apt:
packages:
- libmagic-dev
before_install:
- cpanm Perl::Critic Perl::Tidy
- perlcritic --quiet --single-policy=RequireTidyCode bin
- mkdir ~/.dzil
- export AUTHOR_EMAIL="$(git log -1 ${TRAVIS_COMMIT} --pretty='%aE')"
- export AUTHOR_NAME="$(git log -1 ${TRAVIS_COMMIT} --pretty='%aN')"
- echo -e "[%User]\nname = ${AUTHOR_EMAIL}\nemail = ${AUTHOR_EMAIL}\n" > ~/.dzil/config.ini
- dzil authordeps --missing | cpanm
- dzil listdeps --author --missing | cpanm
- cpanm DBI IPC::Shareable Parallel::ForkManager Digest::HMAC_SHA1
- cpanm String::Escape XML::LibXML Net::SFTP::Foreign IO::Pty
- cpanm File::LibMagic Test::mysqld
install:
- dzil build --in build --notgz
script:
- cd build && prove --timer --lib --recurse --jobs $(nproc) --shuffle t/ xt/
- stage: test
os: windows
language: shell
env:
- PERL_CPANM_OPT="--quiet --notest"
cache:
directories:
- /c/Strawberry
before_install:
- cinst -y strawberryperl
- export "PATH=/c/Strawberry/perl/site/bin:/c/Strawberry/perl/bin:/c/Strawberry/c/bin:$PATH"
- export "PERL5LIB=/c/Strawberry/perl/site/lib:/c/Strawberry/perl/site/lib:/c/Strawberry/perl/vendor/lib:/c/Strawberry/perl/lib"
- ln -snf /c/Strawberry/perl/bin/perl /bin/perl
- cpanm --reinstall Module::Pluggable::Object
- cpanm Dist::Zilla
- mkdir ~/.dzil
- export AUTHOR_EMAIL="$(git log -1 ${TRAVIS_COMMIT} --pretty='%aE')"
- export AUTHOR_NAME="$(git log -1 ${TRAVIS_COMMIT} --pretty='%aN')"
- echo -e "[%User]\nname = ${AUTHOR_EMAIL}\nemail = ${AUTHOR_EMAIL}\n" > ~/.dzil/config.ini
- dzil authordeps --missing | cpanm
- dzil listdeps --author --missing | cpanm
- cpanm DBI Parallel::ForkManager Digest::HMAC_SHA1
- cpanm String::Escape XML::LibXML
- cpanm --reinstall App::Prove
install:
- dzil build --in build --notgz
script:
- cd build
- prove --timer --lib --recurse --jobs $(nproc) --shuffle t/
- stage: test
os: osx
osx_image: xcode11.2
language: shell
env:
- PERL_CPANM_OPT="--quiet --notest"
cache:
directories:
- /usr/local/Cellar/perl
addons:
homebrew:
packages:
- perl
- cpanminus
- openssl
update: true
before_install:
- export PERL_VERSION="$(brew list --versions perl | cut -d' ' -f 2)"
- export "PATH=/usr/local/Cellar/perl/${PERL_VERSION}/bin:${PATH}"
- cpanm Dist::Zilla
- mkdir ~/.dzil
- export AUTHOR_EMAIL="$(git log -1 ${TRAVIS_COMMIT} --pretty='%aE')"
- export AUTHOR_NAME="$(git log -1 ${TRAVIS_COMMIT} --pretty='%aN')"
- echo -e "[%User]\nname = ${AUTHOR_EMAIL}\nemail = ${AUTHOR_EMAIL}\n" > ~/.dzil/config.ini
- dzil authordeps --missing | cpanm
- dzil listdeps --author --missing | cpanm
- cpanm DBI IPC::Shareable Parallel::ForkManager Digest::HMAC_SHA1
- cpanm String::Escape XML::LibXML Net::SFTP::Foreign IO::Pty
install:
- dzil build --in build --notgz
script:
- cd build
- prove --timer --lib --recurse --jobs $(sysctl -n hw.ncpu) --shuffle t/