.travis.yml 1.35 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
14
  global:  # default values
    - COMPILER=gcc
15
    - PYTHON_VERSION=3.7
16
  matrix:
17
    - TASK=regular PYTHON_VERSION=3.6
18
    - TASK=regular COMPILER=clang
19
    - TASK=pylint
20
    - TASK=check-docs
21
    - TASK=if-else
22
23
    - TASK=sdist PYTHON_VERSION=2.7
    - TASK=bdist
24
25
    - TASK=mpi METHOD=source
    - TASK=mpi METHOD=pip
26
27
    - TASK=gpu METHOD=source PYTHON_VERSION=3.5
    - TASK=gpu METHOD=pip PYTHON_VERSION=3.6
28

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

Guolin Ke's avatar
Guolin Ke committed
42
before_install:
43
44
  - test -n $CC  && unset CC
  - test -n $CXX && unset CXX
45
46
47
48
  - export PATH="$HOME/miniconda/bin:$PATH"
  - export LGB_VER=$(head -n 1 VERSION.txt)
  - export AMDAPPSDK=$HOME/AMDAPPSDK
  - export LD_LIBRARY_PATH="$AMDAPPSDK/lib/x86_64:$LD_LIBRARY_PATH"
49
  - 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
50
  - export OPENCL_VENDOR_PATH=$AMDAPPSDK/etc/OpenCL/vendors
wxchan's avatar
wxchan committed
51
52

install:
53
  - bash .travis/setup.sh
Guolin Ke's avatar
Guolin Ke committed
54
55

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

notifications:
  email: false