Merge pull request #228 from lskatz/master
[bioperl-live.git] / .travis.yml
blobad0bafd12ae9368fc41b6506eb7166dbdc756cd6
1 language: perl
2 perl:
3   - "5.24"
4   - "5.20"
5   - "5.18"
6   - "5.16"
7   - "5.14"
9 matrix:
10   include:
11     - perl: 5.18
12       env: COVERAGE=1 TEST_PARTITION=1
13     - perl: 5.18
14       env: COVERAGE=1 TEST_PARTITION=2
15     - perl: 5.18
16       env: COVERAGE=1 TEST_PARTITION=3
17     - perl: 5.18
18       env: COVERAGE=1 TEST_PARTITION=4
19     - perl: 5.18
20       env: COVERAGE=1 TEST_PARTITION=5
21     - perl: 5.18
22       env: COVERAGE=1 TEST_PARTITION=6
24 sudo: false
25 env:
26   global:
27     - PERL_CPANM_OPT="--notest --force --skip-satisfied"
28     - BIOPERL_NETWORK_TESTING=0   # disables the network tests
29     - TEST_PARTITIONS=6
31 addons:
32   apt:
33     packages:
34       - libdb-dev
35       - graphviz
36       - libgd2-xpm-dev
37       - libxml2-dev
39 before_install:
40   - git clone git://github.com/travis-perl/helpers ~/travis-perl-helpers
41   - source ~/travis-perl-helpers/init
42   - build-perl
43   - perl -V
44   - cpanm DBD::mysql DBD::Pg DBD::SQLite 2>&1 | tail -n 1
45   - cpanm Test::Pod 2>&1 | tail -n 1
46   - cpanm Bio::ASN1::EntrezGene 2>&1 | tail -n 1
47   - if [ "$BIOPERL_NETWORK_TESTING" = "1" ]; then
48       export TRAVIS_AUTHOR_TESTING=1;
49       export TRAVIS_RELEASE_TESTING=1;
50       cpanm LWP::UserAgent LWP::Protocol::https 2>&1 | tail -n 1;
51     fi
52   - build-dist
53   - cd $BUILD_DIR
54 install:
55   - cpan-install --deps
56   - cpan-install --coverage
57 before_script:
58   - coverage-setup
59 script:
60   - export AUTHOR_TESTING=${TRAVIS_AUTHOR_TESTING:=0}
61   - export RELEASE_TESTING=${TRAVIS_RELEASE_TESTING:=0}
62   - prove -l -j$(test-jobs) $(test-files)
63 after_success:
64   - coverage-report
65   - ./travis_scripts/trigger-dockerhub.sh
67 #TODO - send emails to bioperl-guts-l
68 notifications:
69   email:
70     recipients:
71       - bioperl-guts-l@lists.open-bio.org
72       - cjfields1@gmail.com
73     on_success: change
74     on_failure: change
76 # whitelist branches
77 branches:
78   only:
79     - master
80     - /^release-[1-9]*-[0-9]*-[0-9]*$/