.travis.yml 980 Bytes
Newer Older
Tianqi Chen committed
1 2 3 4 5
sudo: false

language: cpp

os:
6
# - linux
7
  - osx
Tianqi Chen committed
8

9 10
osx_image: xcode8

Tianqi Chen committed
11 12
env:
  # code analysis
13
  - TASK=all_test
Tianqi Chen committed
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37

branches:
  only:
    - master

matrix:
  exclude:
    - os: osx
      env: TASK=lint

# dependent apt packages
addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - doxygen
      - wget
      - git
      - unzip
      - gcc-4.8
      - g++-4.8
      - python-numpy
      - python-nose
38
      - python3-numpy
Tianqi Chen committed
39 40 41
      - python3-dev
      - python3-nose
      - graphviz
42 43
      - bison
      - flex
Tianqi Chen committed
44 45 46 47 48

before_install:
  - export PYTHONPATH=${PYTHONPATH}:${PWD}/python

install:
49
  - source dmlc-core/scripts/travis/travis_setup_env.sh
Tianqi Chen committed
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
  - source tests/travis/setup.sh

script:
  - tests/travis/run_test.sh

cache:
  directories:
    - ${HOME}/.cache/usr

before_cache:
  - dmlc-core/scripts/travis/travis_before_cache.sh

after_failure:
  - tests/travis/travis_after_failure.sh

notifications:
  email:
    on_success: change
    on_failure: always