forked from NicTool/NicTool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
91 lines (80 loc) · 2.37 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
language: perl
perl:
- "5.28"
- "5.24"
- "5.20"
dist: precise
services:
- mysql
addons:
apt:
packages:
- expat
- cpanminus
- libdbix-simple-perl
- libdbd-mysql-perl
- apache2
- libapache2-mod-perl2
- libapache2-mod-perl2-dev
- libapache-dbi-perl
- gettext
- libxml2
- libnet-ip-perl
- libxml-libxml-perl
- libxml-parser-perl
- libdigest-hmac-perl
- libjson-perl
- librpc-xml-perl
- libsoap-lite-perl
- libmodule-build-perl
- libmime-base32-perl
- libmime-base64-perl
- libbind-confparser-perl
- libssl-dev
- libcrypt-openssl-rsa-perl
- libcrypt-openssl-dsa-perl
# - libshell-perl
- libnet-dns-perl
- libyaml-perl
- bind9utils
- libwww-perl
- liburi-perl
- libmime-tools-perl
- libmailtools-perl
- libfile-sharedir-perl
- libperl-prereqscanner-perl
- libdbi-perl
- libcgi-pm-perl
- libtest-pod-perl
- libtest-output-perl
before_install:
- sudo .test/tls-setup.sh
# - sudo .test/mysql-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 URI
# locally installed modules, for tests
- cpanm --notest --force Test::More Test::HTML::Lint Test::Output Test::Pod URI
- cpanm --notest --force Net::DNS || sudo cpanm --notest --force Net::[email protected] || 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 a2dismod mpm_event; sudo a2dismod mpm_worker; sudo a2enmod mpm_prefork
- 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
- mysql --version
- apache2 -version
- sudo cat /var/log/apache2/error.log
- cat /etc/apache2/apache2.conf
- ls /usr/lib/apache2/modules/
after_script:
#sudo: false