.travis.yml 2.3 KB
Newer Older
Andy Yates's avatar
Andy Yates committed
1 2 3 4 5 6 7 8 9 10 11
language: "perl"

sudo: false

cache:
  apt: false
  directories:
    - $HOME/perl5/perlbrew
    - $HOME/dependencies

perl:
12
  - "5.26"
Andy Yates's avatar
Andy Yates committed
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
  - "5.14"
#  - "5.12"
#  - "5.10"

# env:
#  - COVERALLS=true  DB=mysql
  # - COVERALLS=false DB=mysql
#  - COVERALLS=false DB=sqlite

addons:
  apt:
    packages:
      - unzip
      - apache2
      - libpng12-dev
      - libssl-dev
      - openssl
30 31 32

services:
  - mysql
Andy Yates's avatar
Andy Yates committed
33 34 35 36

before_install:
    - git clone --branch master --depth 1 https://github.com/Ensembl/ensembl-test.git
    - git clone --branch master --depth 1 https://github.com/Ensembl/ensembl.git
37
    - git clone --branch master --depth 1 https://github.com/Ensembl/ensembl-variation.git
Andy Yates's avatar
Andy Yates committed
38 39 40 41 42 43 44 45 46 47
    - export CWD=$PWD
    - export DEPS=$HOME/dependencies
    - mkdir -p $DEPS
    - cd $DEPS
    - $CWD/travisci/get_dependencies.sh
    - cd $CWD

install:
    - export CWD=$PWD
    - export DEPS=$HOME/dependencies
48
    - export KENT_SRC="$DEPS/kent-335_base/src"
Rishi Nag's avatar
Rishi Nag committed
49
    - export HTSLIB_DIR=$DEPS/htslib
Andy Yates's avatar
Andy Yates committed
50 51
    - export MACHTYPE=$(uname -m)
    - export CFLAGS="-fPIC"
52
    - export PERL5LIB=$DEPS/bioperl-live-release-1-6-924:$PERL5LIB
Andy Yates's avatar
Andy Yates committed
53 54 55 56 57
    - cd $DEPS
    - $CWD/travisci/build_c.sh
    - cd $CWD
    - cpanm -v --installdeps --with-recommends --notest --cpanfile ensembl/cpanfile .
    - cpanm -v --installdeps --notest .
58
    - cpanm Bio::DB::HTS
Andy Yates's avatar
Andy Yates committed
59 60
    - cpanm -n Devel::Cover::Report::Coveralls
    - cpanm -n DBD::SQLite
61
    - cpanm JSON
62
    - cpanm URI::Escape
63
    - mysql -u root -h localhost -e 'GRANT ALL PRIVILEGES ON *.* TO "travis"@"%"'
64
    - cp travisci/MultiTestDB.conf.travisci.mysql  modules/t/MultiTestDB.conf
Andy Yates's avatar
Andy Yates committed
65
#    - cp travisci/MultiTestDB.conf.travisci.SQLite modules/t/MultiTestDB.conf.SQLite
Rishi Nag's avatar
Rishi Nag committed
66

Andy Yates's avatar
Andy Yates committed
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
script: "./travisci/harness.sh"

# Get the matrix to only build coveralls support when on 5.10
# matrix:
#   exclude:
#     - perl: "5.10"
#       env: COVERALLS=false DB=mysql
#     - perl: "5.12"
#       env: COVERALLS=false DB=sqlite
#     - perl: "5.12"
#       env: COVERALLS=true  DB=mysql
#     - perl: "5.14"
#       env: COVERALLS=false DB=sqlite
#     - perl: "5.14"
#       env: COVERALLS=true  DB=mysql
#
83 84 85 86 87 88

notifications:
  slack:
    rooms:
      secure: bNSqBwR+6GpKqW22MuBbdAH9Pb25hbX8UOW3MVd9HI7CnQBOfifXR47AMClFgfV5ZcHHRnOtOqin8RYccmrTJOxAAa6IilFJ/z5XAjVIMLQAORut+fVYnwOmQuvedWR8GdXq/awgVLeNG/ROIwl1gyFirTWYV5ygwM4McvD8y5A=
    on_failure: change