-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
30 lines (24 loc) · 976 Bytes
/
.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
language: perl
perl:
- "5.28"
- "5.14"
services:
- mysql
install:
- export RELEASE_TESTING=1 AUTOMATED_TESTING=1 AUTHOR_TESTING=1 HARNESS_OPTIONS=c HARNESS_TIMER=1
- cpanm --quiet --notest Devel::Cover::Report::Coveralls
- cpanm --quiet --notest --installdeps .
before_script:
- perl -MDBD::mysql -e 'print $DBD::mysql::VERSION ."\n"'
- mysql -e 'CREATE DATABASE eludia_test CHARACTER SET cp1251 COLLATE cp1251_general_ci'
- cd ..
- git clone https://github.com/do-/default-eludia.pm-application.git
- cd default-eludia.pm-application
- mkdir conf
- cp ../eludia/.travis_httpd.conf conf/httpd.conf
- perl -MCwd -p -i -e 's/ELUDIA_PATH/\.\.\/eludia/g' conf/httpd.conf
- perl -MCwd -p -i -e 's/APP_PATH/cwd/eg' conf/httpd.conf
script:
- perl -I$(pwd)/../eludia -MDevel::Cover=-coverage,statement,branch,condition,path,subroutine -MEludia::Install -e "exit(test())"
after_success:
- cover -report coveralls