forked from sni/Thruk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (37 loc) · 2.23 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
language: perl
before_install:
- sudo apt-get update
- sudo apt-get install apt-transport-https
- sudo sh -c "echo 'deb https://labs.consol.de/repo/stable/ubuntu precise main' >> /etc/apt/sources.list"
- gpg --keyserver keys.gnupg.net --recv-keys F8C1CA08A57B9ED7
- gpg --armor --export F8C1CA08A57B9ED7 | sudo apt-key add -
- sudo apt-get update
- sudo apt-get install make build-essential rsync perl-doc tofrodos libcurl4-openssl-dev apache2 libcairo2-dev libperl-dev libmysqlclient-dev libgd2-xpm-dev cpanminus yui-compressor wget
- sudo apt-get install libfile-bom-perl libhtml-lint-perl libcatalyst-devel-perl libtest-simple-perl libtest-cmd-perl libtest-pod-perl libmodule-install-perl libgd-gd2-perl libcatalyst-perl libtest-pod-coverage-perl libperl-critic-perl libtest-perl-critic-perl libtemplate-perl libdate-calc-perl liblog-log4perl-perl libconfig-any-perl libdata-page-perl libcatalyst-modules-perl libmime-lite-perl
- sudo apt-get install naemon-core naemon-livestatus
- perlbrew off
- cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
- cpanm -n Perl::Critic::Policy::Dynamic::NoIndirect Perl::Critic::Policy::NamingConventions::ProhibitMixedCaseSubs Perl::Critic::Policy::ValuesAndExpressions::ProhibitAccessOfPrivateData Catalyst::Plugin::Redirect CatalystX::LeakChecker List::Compare
- cpanm -q -f --installdeps --notest .
- git config --global user.email "travis@localhost"
- git config --global user.name "Travis Testuser"
- wget "http://www.thruk.org/wkhtmltopdf-0.11.0_rc1-static-amd64.tar.gz" -O /tmp/wkhtmltopdf-0.11.0_rc1-static-amd64.tar.gz
- cd /tmp/ && tar zxf wkhtmltopdf-0.11.0_rc1-static-amd64.tar.gz && mv wkhtmltopdf-amd64 wkhtmltopdf && cd -
- echo 'eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)' > ~/.thruk
install:
- ./configure || exit 1
- make || exit 1
- cp t/travis/thruk_local.conf .
- sudo chmod 660 /var/cache/naemon/live
- sudo gpasswd -a $(id -un) naemon
script:
- sudo su $(id -un) -c 'eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib) && TEST_AUTHOR=1 make test'
notifications:
email:
irc:
channels:
- "chat.freenode.net#thruk"
on_success: change
on_failure: always
skip_join: true