Update .travis.yml with faster deps and DBICTESTs
[dbsrgits/DBIx-Class.git] / .travis.yml
1 language: perl
2 perl:
3    - "5.16"
4    - "5.14"
5    - "5.12"
6    - "5.10"
7
8 # Deal with all of the dependancies, quickly and quietly
9 install:
10    - export RELEASE_TESTING=1 AUTOMATED_TESTING=1 AUTHOR_TESTING=1 HARNESS_OPTIONS=j10:c HARNESS_TIMER=1
11    - perl Makefile.PL --alldeps
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
20 before_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
44 script:
45    # Override default to make sure we don't run Makefile.PL without --alldeps
46    - make test
47
48 # Uncomment for cpanm install failures
49 #after_failure:
50 #   - tail -100 /home/travis/.cpanm/build.log
51
52 notifications:
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