Bio/Draw/Pictogram.pm: move to another repo with same name.
[bioperl-live.git] / .travis.yml
blob55d65a321a608e2240257a01628061c302c1c073
1 language: perl
2 perl:
3   - "5.26"
4   - "5.24"
5   - "5.20"
6   - "5.18"
7   - "5.16"
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   - export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
41   - git clone git://github.com/travis-perl/helpers ~/travis-perl-helpers
42   - source ~/travis-perl-helpers/init
43   - build-perl
44   - perl -V
45   - cpanm DBD::mysql DBD::Pg DBD::SQLite 2>&1 | tail -n 1
46   - cpanm Test::Pod 2>&1 | tail -n 1
47   - cpanm Bio::ASN1::EntrezGene 2>&1 | tail -n 1
48   - if [ "$TRAVIS_EVENT_TYPE" = "cron" -a "$BRANCH" = "network-cron-master" ]; then
49       export BIOPERL_NETWORK_TESTING=1;
50       git fetch origin master:master; git checkout master;
51     fi
52   - if [ "$BIOPERL_NETWORK_TESTING" = "1" ]; then
53       export TRAVIS_AUTHOR_TESTING=1;
54       export TRAVIS_RELEASE_TESTING=1;
55       cpanm LWP::UserAgent LWP::Protocol::https 2>&1 | tail -n 1;
56     fi
57   - build-dist
58   - cd $BUILD_DIR
59 install:
60   - cpan-install --deps
61   - cpan-install --coverage
62 before_script:
63   - coverage-setup
64 script:
65   - export AUTHOR_TESTING=${TRAVIS_AUTHOR_TESTING:=0}
66   - export RELEASE_TESTING=${TRAVIS_RELEASE_TESTING:=0}
67   - prove -l -j$(test-jobs) $(test-files)
68 after_success:
69   - coverage-report
70   - ./travis_scripts/trigger-dockerhub.sh
72 #TODO - send emails to bioperl-guts-l
73 notifications:
74   email:
75     recipients:
76       - bioperl-guts-l@lists.open-bio.org
77       - cjfields1@gmail.com
78     on_success: change
79     on_failure: change
81 # whitelist branches
82 branches:
83   only:
84     - master
85     - /^release-[1-9]*-[0-9]*-[0-9]*$/
86     - network-cron-master