.travis.yml 1.31 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=mpi
20
    - TASK=pylint
21
    - TASK=check-docs
22
    - TASK=if-else
23
24
25
26
    - TASK=sdist PYTHON_VERSION=2.7
    - TASK=bdist
    - TASK=gpu METHOD=source PYTHON_VERSION=3.5
    - TASK=gpu METHOD=pip PYTHON_VERSION=3.6
27

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

Guolin Ke's avatar
Guolin Ke committed
41
before_install:
42
43
  - test -n $CC  && unset CC
  - test -n $CXX && unset CXX
44
45
46
47
  - 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"
48
  - 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
49
  - export OPENCL_VENDOR_PATH=$AMDAPPSDK/etc/OpenCL/vendors
wxchan's avatar
wxchan committed
50
51

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

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

notifications:
  email: false