.travis.yml 1.42 KB
Newer Older
Guolin Ke's avatar
Guolin Ke committed
1
2
3
4
language: cpp
sudo: required
dist: trusty

5
6
7
git:
  submodules: true

8
9
10
11
12
os:
  - linux
  - osx

env:
13
  global:  # default values
14
    - COMPILER=clang
15
    - PYTHON_VERSION=3.7
16
  matrix:
17
18
19
    - TASK=regular PYTHON_VERSION=3.6
    - TASK=sdist PYTHON_VERSION=2.7
    - TASK=bdist
20
21
    - TASK=pylint
    - TASK=check-docs
22
23
    - TASK=mpi METHOD=source
    - TASK=mpi METHOD=pip
24
25
    - TASK=gpu METHOD=source PYTHON_VERSION=3.5
    - TASK=gpu METHOD=pip PYTHON_VERSION=3.6
26

wxchan's avatar
wxchan committed
27
matrix:
28
  exclude:
wxchan's avatar
wxchan committed
29
    - os: osx
30
      env: TASK=gpu METHOD=source PYTHON_VERSION=3.5
wxchan's avatar
wxchan committed
31
    - os: osx
32
      env: TASK=gpu METHOD=pip PYTHON_VERSION=3.6
33
    - os: osx
34
      env: TASK=pylint
35
36
    - os: osx
      env: TASK=check-docs
wxchan's avatar
wxchan committed
37

Guolin Ke's avatar
Guolin Ke committed
38
before_install:
39
40
  - test -n $CC  && unset CC
  - test -n $CXX && unset CXX
41
42
43
44
45
46
  - export HOME_DIRECTORY="$HOME"
  - if [[ $TRAVIS_OS_NAME == "osx" ]]; then
        export OS_NAME="macos";
    else
        export OS_NAME="linux";
    fi
47
48
  - export PATH="$HOME/miniconda/bin:$PATH"
  - export LGB_VER=$(head -n 1 VERSION.txt)
49
50
  - export AMDAPPSDK_PATH=$HOME/AMDAPPSDK
  - export LD_LIBRARY_PATH="$AMDAPPSDK_PATH/lib/x86_64:$LD_LIBRARY_PATH"
51
  - export LD_LIBRARY_PATH="/usr/local/clang/lib:$LD_LIBRARY_PATH"  # fix error "libomp.so: cannot open shared object file: No such file or directory" on Linux with Clang
52
  - export OPENCL_VENDOR_PATH=$AMDAPPSDK_PATH/etc/OpenCL/vendors
wxchan's avatar
wxchan committed
53
54

install:
55
  - bash .ci/setup.sh
Guolin Ke's avatar
Guolin Ke committed
56
57

script:
58
  - bash .travis/test.sh
Guolin Ke's avatar
Guolin Ke committed
59
60
61

notifications:
  email: false