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

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

7 8 9
services:
  - mysql

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

18
sudo: false
Alessandro Vullo's avatar
Alessandro Vullo committed
19

20 21 22 23
addons:
  apt:
    packages:
    - unzip
Alessandro Vullo's avatar
Alessandro Vullo committed
24

25
before_install:
26
  - git clone --branch master --depth 1 https://github.com/Ensembl/ensembl.git
27
  - git clone -b release-1-6-924 --depth 1 https://github.com/bioperl/bioperl-live.git
28

29
install:
30 31 32 33 34 35 36 37
  # 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
38 39 40 41 42 43
  - 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"@"%"'
44

45
script: "./travisci/harness.sh"
Alessandro Vullo's avatar
Alessandro Vullo committed
46

47 48
jobs:
  include:
49 50
  - stage: trigger_dependent_builds
    script: "./travisci/trigger-dependent-build.sh"
51

52 53
matrix:
  exclude:
54
  - perl: '5.14'
55 56
    env: COVERALLS=false DB=mysql
  - perl: '5.26'
57
    env: COVERALLS=false DB=sqlite
58
  - perl: '5.26'
59
    env: COVERALLS=true  DB=mysql
60

61 62
notifications:
  email:
63
    on_failure: change
64
  slack:
65 66
    rooms:
      secure: JSqXP1CEa5/0x1qn6WoJ4KgLIrSVk8rTBoyy75RBGBZekrJvX5SuSqbZGK4V+oq1pBsk60MOlOkRuMDYrLBcB2TcDRKBqvaWqEbKiJtbmOJTZjFFssPr1HdJ8C77OxBg7CS+IdMh6Hf7AyAkCwO+e0c6ihgvmgx9+MIwmdgGAfw=
67
    on_failure: change