.travis.yml 1.27 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
  - export PATH="$HOME/miniconda/bin:$PATH"
  - export LGB_VER=$(head -n 1 VERSION.txt)
43
44
  - export AMDAPPSDK_PATH=$HOME/AMDAPPSDK
  - export LD_LIBRARY_PATH="$AMDAPPSDK_PATH/lib/x86_64:$LD_LIBRARY_PATH"
45
  - 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
46
  - export OPENCL_VENDOR_PATH=$AMDAPPSDK_PATH/etc/OpenCL/vendors
wxchan's avatar
wxchan committed
47
48

install:
49
  - bash .travis/setup.sh
Guolin Ke's avatar
Guolin Ke committed
50
51

script:
52
  - bash .travis/test.sh
Guolin Ke's avatar
Guolin Ke committed
53
54
55

notifications:
  email: false