This repository has been archived by the owner on Mar 7, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
.travis.yml
77 lines (61 loc) · 1.93 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
language: perl
install:
- curl https://perl5-alien.github.io/static/travis/install-system-dontpanic.sh | bash -
- ./maint/install-ab-mb.sh
- cpanm -n --installdeps .
# for t/inline*.t tests
- ./maint/min-perl.pl 5.010 cpanm -n Inline::C Inline::CPP
# for tests against Acme::Ford::Prefect::FFI
- env PERL_ALT_INSTALL=OVERWRITE cpanm Alt::Alien::FFI::System
- cpanm -n FFI::Platypus
# for Alien::Libbz2
- cpanm -n Test::CChecker
# for Acme modules
- cpanm -n Test::Alien
# for ./maint/test-*
- cpanm -n local::lib
# for upgrade tests
- git fetch --unshallow
perl:
- "5.8"
- "5.10"
- "5.12"
- "5.14"
- "5.16"
- "5.18"
- "5.20"
- "5.22"
- "5.24"
- "5.26"
script:
# basic test without anything optional installed
- perl Makefile.PL
- make
- make test TEST_VERBOSE=1
- make install
# test that installing to a destdir and then moving that dir
# to the real root works:
- ./maint/test-destdir.sh
# test the regression that happened between 0.019 and 0.020 caused
# by changes to the format of the data in ConfigData.pm
- bash -x ./maint/test-upgrade.sh '' "d2d6e3782bfdbec14db2c78532122055d2b22401" '' "0.019"
# test that we can move an Alien dist
- ./maint/install-perl.sh Acme::Alien::DontPanic /tmp/original
- mv /tmp/original /tmp/moved
- ./maint/install-perl.sh Acme::Ford::Prefect /tmp/moved
# test more normal installs
- ./maint/install-perl.sh Acme::Alien::DontPanic
- ./maint/install-perl.sh Acme::Ford::Prefect
- ./maint/install-perl.sh Acme::Ford::Prefect::FFI
#- ./maint/install-perl.sh Alien::Libbz2
# verify still works with optional modules
- make test TEST_VERBOSE=1
env:
global:
- PATH=$PATH:$HOME/opt/dontpanic/current/bin
- LD_LIBRARY_PATH=$HOME/opt/dontpanic/current/lib
- PKG_CONFIG_PATH=$HOME/opt/dontpanic/current/lib/pkgconfig
matrix:
- ALIEN_INSTALL_TYPE=share
- ALIEN_INSTALL_TYPE=system
sudo: false