Update .travis.yml with faster deps and DBICTESTs
[dbsrgits/DBIx-Class-Historic.git] / .travis.yml
CommitLineData
915876d7 1language: perl
2perl:
dea888a6 3 - "5.16"
915876d7 4 - "5.14"
5 - "5.12"
6 - "5.10"
7
dea888a6 8# Deal with all of the dependancies, quickly and quietly
915876d7 9install:
dea888a6 10 - export RELEASE_TESTING=1 AUTOMATED_TESTING=1 AUTHOR_TESTING=1 HARNESS_OPTIONS=j10:c HARNESS_TIMER=1
915876d7 11 - perl Makefile.PL --alldeps
dea888a6 12
13 # Install modules that typically appear in more than one dep
14 - echo -e 'DBI\nMoo\nDateTime::Format::Strptime' | xargs -n 1 -P 10 cpanm --quiet --notest
15
16 # Superfast parallelized dependancy installs
17 - make listalldeps | xargs -n 6 -P 10 cpanm --quiet --notest
18
19# DBICTEST extra database tests
20before_script:
21 # Install required DBDs
22 - echo -e 'DBD::Pg\nDBD::mysql\nSys::SigAction' | xargs -n 1 -P 10 cpanm --quiet --notest
23
24 # Set up DBICTEST vars
25 - export DBICTEST_PG_DSN='dbi:Pg:database=dbic_test;host=127.0.0.1' DBICTEST_PG_USER=postgres DBICTEST_PG_PASS=''
26 - export DBICTEST_MYSQL_DSN='dbi:mysql:database=dbic_test;host=127.0.0.1' DBICTEST_MYSQL_USER=root DBICTEST_MYSQL_PASS=''
27 ### Disabling for now until we figure out the weird Firebird test failure, and why DBD::Firebird doesn't install ###
28 #- export DBICTEST_FIREBIRD_DSN='dbi:Firebird:db=/var/lib/firebird/2.5/data/employee.fdb' DBICTEST_FIREBIRD_USER=SYSDBA DBICTEST_FIREBIRD_PASS=masterkey
29
30 # Set up databases for already-installed platforms
31 - mysql -e 'create database dbic_test;'
32 - psql -c 'create database dbic_test;' -U postgres
33
34 # Database install for Firebird
35 #- sudo apt-get -y install firebird2.5-super firebird2.5-examples
36 #- sudo perl -pi -e 's/\=no/=yes/;' /etc/default/firebird2.5
37 #- sudo /etc/init.d/firebird2.5-super start
38 #- cd /usr/share/doc/firebird2.5-examples/examples/empbuild/
39 #- sudo gunzip employee.fdb.gz
40 #- sudo chown firebird.firebird employee.fdb
41 #- sudo mv employee.fdb /var/lib/firebird/2.5/data/
42 #- cd -
43
915876d7 44script:
dea888a6 45 # Override default to make sure we don't run Makefile.PL without --alldeps
915876d7 46 - make test
47
dea888a6 48# Uncomment for cpanm install failures
49#after_failure:
50# - tail -100 /home/travis/.cpanm/build.log
915876d7 51
52notifications:
dea888a6 53 irc:
54 channels:
55 - "irc.perl.org#dbic-smoke"
56 template:
57 - "%{branch}#%{build_number} by %{author}: %{message} (%{build_url})"
58 on_success: change
59 on_failure: always
60 use_notice: true