.travis.yml 2.08 KB
Newer Older
1
language: perl
2

3
perl:
4
  - '5.26'
5
  - '5.14'
Alessandro Vullo's avatar
Alessandro Vullo committed
6

7
env:
8
  matrix:
Alessandro Vullo's avatar
Alessandro Vullo committed
9 10 11
  - COVERALLS=true  DB=mysql
  - COVERALLS=false DB=mysql
  - COVERALLS=false DB=sqlite
12
  global:
13
    secure: EbGoRzfTTy/nlGPRYOEhKcYnIIrUHeM5etlqdAsMrfOkCCVJe7/QIWUG7hx1qdprIPdrKZ0jnmzBO3STz5m+TrsE/rAZjTM/MyEtwxAFEsdNlOKeozyE4Y4kwFMOqiLAFhHPtd3JhV92VMj3VSGVLkhNaaXbz1kj/aU14hOhbT4=
Alessandro Vullo's avatar
Alessandro Vullo committed
14

15
sudo: false
Alessandro Vullo's avatar
Alessandro Vullo committed
16

17 18 19 20
addons:
  apt:
    packages:
    - unzip
Alessandro Vullo's avatar
Alessandro Vullo committed
21

22
before_install:
23
  - git clone --branch master --depth 1 https://github.com/Ensembl/ensembl.git
24
  - git clone -b release-1-6-924 --depth 1 https://github.com/bioperl/bioperl-live.git
25

26
install:
27 28 29 30 31 32 33 34
  # Install IO::Scalar before processing the cpanfile because one of the dependencies
  # of Test::FTP::Server requires it yet does not declare it as a dependency, and
  # cpanm - or to be precise the module CPAN::Meta::Prereqs - scrambles the order
  # of entries in cpanfiles (see https://github.com/miyagawa/cpanfile/issues/42).
  # Cpanfile upstream categorically refuses to implement the forcing of dependencies
  # (see https://github.com/miyagawa/cpanfile/issues/3) so we will have to keep this
  # here until either Net::FTPServer has been fixed or we stop using Test::FTP::Server
  - cpanm -n IO::Scalar
35 36 37 38 39 40
  - cpanm -v --installdeps --notest .
  - cpanm -n Devel::Cover::Report::Coveralls
  - cpanm -n DBD::SQLite
  - cp travisci/MultiTestDB.conf.travisci.mysql  modules/t/MultiTestDB.conf.mysql
  - cp travisci/MultiTestDB.conf.travisci.SQLite modules/t/MultiTestDB.conf.SQLite
  - mysql -u root -h localhost -e 'GRANT ALL PRIVILEGES ON *.* TO "travis"@"%"'
41

42
script: "./travisci/harness.sh"
Alessandro Vullo's avatar
Alessandro Vullo committed
43

44 45
jobs:
  include:
46 47
  - stage: trigger_dependent_builds
    script: "./travisci/trigger-dependent-build.sh"
48

49 50
matrix:
  exclude:
51
  - perl: '5.14'
52 53
    env: COVERALLS=false DB=mysql
  - perl: '5.26'
54
    env: COVERALLS=false DB=sqlite
55
  - perl: '5.26'
56
    env: COVERALLS=true  DB=mysql
57

58 59
notifications:
  email:
60
    on_failure: change
61
  slack:
62
    secure: mS8ac72wmNRN6sz9nNyoFf59xnC75sU7TW4v/kUfC6hTW8pmwdx4ss1P4qkegJJb3bvxj+oKQRUqk8BtApozPyNXTkBDTMjsPXH0IQ4uz9JE5PHIzLpW1PMPiiV/JbyM2LX8vUFm/CA1t/tiwzSQ3PqrN3KjTrqbcyrEe+hD+jQ=
63
    on_failure: change