forked from NicTool/NicTool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
80 lines (70 loc) · 2.1 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
language: perl
perl:
- "5.22"
- "5.18"
- "5.10"
services:
- mysql
addons:
apt:
packages:
- expat
- gettext
- apache2
- apache2.2-common
- apache2-mpm-worker
- libapache2-mod-perl2
- libapache2-mod-perl2-dev
- libdigest-hmac-perl
- libssl-dev
- bind9utils
- librpc-xml-perl
- libxml-libxml-perl
- libapache-dbi-perl
- libxml-parser-perl
- libjson-perl
- libsoap-lite-perl
- libmodule-build-perl
- libmime-base32-perl
- libmime-base64-perl
- libbind-confparser-perl
- libcrypt-openssl-rsa-perl
- libcrypt-openssl-dsa-perl
- libyaml-perl
- libwww-perl
- liburi-perl
- libmime-tools-perl
- libmailtools-perl
- libfile-sharedir-perl
- libperl-prereqscanner-perl
- libdbix-simple-perl
- libdbi-perl
- libnet-ip-perl
- libnet-dns-perl
before_install:
- sudo .test/tls-setup.sh
# globally/system installed perl modules, for Apache::mod_perl
- curl -L https://cpanmin.us | sudo perl - --sudo App::cpanminus
- sudo cpanm --notest CGI RPC::XML CryptX Crypt::Mac::HMAC Crypt::KeyDerivation DBD::mysql Apache::DBI Shell
# locally installed modules, for tests
- cpanm --notest --force Test::More Test::HTML::Lint Test::Output Test::Pod
- cpanm --notest --force Net::DNS || sudo cpanm --notest --force Net::DNS@1.0.6 || echo "double darn"
- cd /home/travis/build/msimerson/NicTool/client && perl Makefile.PL && cpanm -n .
- cd /home/travis/build/msimerson/NicTool/server && perl Makefile.PL && cpanm -n .
- cd /home/travis/build/msimerson/NicTool
install:
- sudo cp .test/apache-travis.conf /etc/apache2/sites-enabled/nictool.conf
- sudo service apache2 restart || sudo cat /var/log/apache2/error.log
- perl .test/create_tables.pl
before_script:
script:
- make -C /home/travis/build/msimerson/NicTool/client test
- make -C /home/travis/build/msimerson/NicTool/server test
after_success:
after_failure:
- pwd
- cat /var/log/apache2/error.log
- cat /etc/apache2/apache2.conf
- ls /usr/lib/apache2/modules/
after_script:
#sudo: false