2020-07-29 23:06:31 +03:00
if : branch = master
2016-10-11 10:54:37 +03:00
language : cpp
2017-09-10 03:27:48 +03:00
git :
submodules : true
2019-10-22 02:21:05 +03:00
depth : 5
2017-09-10 03:27:48 +03:00
2017-09-08 13:17:00 +03:00
os :
- linux
- osx
2020-09-14 17:49:45 +03:00
dist : focal
2020-08-19 22:02:05 +03:00
osx_image : xcode12
2017-09-08 13:17:00 +03:00
env :
2018-08-13 12:03:49 +03:00
global : # default values
2020-04-14 01:08:15 +03:00
- PYTHON_VERSION=3.8
2017-09-08 13:17:00 +03:00
matrix :
2018-08-19 08:45:37 +03:00
- TASK=regular PYTHON_VERSION=3.6
- TASK=sdist PYTHON_VERSION=2.7
- TASK=bdist
2019-09-09 20:07:58 +03:00
- TASK=if-else
2019-09-19 16:48:53 +03:00
- TASK=lint
2018-09-12 13:32:09 +03:00
- TASK=check-docs
2018-09-10 06:28:36 +03:00
- TASK=mpi METHOD=source
2020-04-14 01:08:15 +03:00
- TASK=mpi METHOD=pip PYTHON_VERSION=3.7
2020-09-15 18:12:03 +03:00
- TASK=gpu METHOD=source
2018-08-19 08:45:37 +03:00
- TASK=gpu METHOD=pip PYTHON_VERSION=3.6
2017-09-08 13:17:00 +03:00
2017-06-22 11:42:45 +03:00
matrix :
2017-09-08 13:17:00 +03:00
exclude :
2017-06-22 11:42:45 +03:00
- os : osx
2020-09-15 18:12:03 +03:00
env : TASK=gpu METHOD=source
2017-06-22 11:42:45 +03:00
- os : osx
2018-08-19 08:45:37 +03:00
env : TASK=gpu METHOD=pip PYTHON_VERSION=3.6
2017-06-30 08:00:18 +03:00
- os : osx
2019-09-19 16:48:53 +03:00
env : TASK=lint
2017-10-03 18:04:27 +03:00
- os : osx
env : TASK=check-docs
2017-06-22 11:42:45 +03:00
2016-10-11 10:54:37 +03:00
before_install :
2017-09-08 13:17:00 +03:00
- test -n $CC && unset CC
- test -n $CXX && unset CXX
2018-09-17 12:16:03 +03:00
- export BUILD_DIRECTORY="$TRAVIS_BUILD_DIR"
2018-09-15 04:59:55 +03:00
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then
export OS_NAME="macos";
2020-02-03 07:17:33 +03:00
export COMPILER="gcc";
2018-09-15 04:59:55 +03:00
else
export OS_NAME="linux";
2020-02-03 07:17:33 +03:00
export COMPILER="clang";
2018-09-15 04:59:55 +03:00
fi
2019-02-18 09:37:36 +03:00
- export CONDA="$HOME/miniconda"
- export PATH="$CONDA/bin:$PATH"
2018-09-17 12:16:03 +03:00
- export CONDA_ENV="test-env"
2018-06-10 03:48:37 +03:00
- export LGB_VER=$(head -n 1 VERSION.txt)
2018-09-12 13:32:09 +03:00
- export AMDAPPSDK_PATH=$HOME/AMDAPPSDK
- export LD_LIBRARY_PATH="$AMDAPPSDK_PATH/lib/x86_64:$LD_LIBRARY_PATH"
2018-08-13 12:03:49 +03:00
- 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
2018-09-12 13:32:09 +03:00
- export OPENCL_VENDOR_PATH=$AMDAPPSDK_PATH/etc/OpenCL/vendors
2017-06-22 11:42:45 +03:00
install :
2018-09-15 04:59:55 +03:00
- bash .ci/setup.sh
2016-10-11 10:54:37 +03:00
script :
2018-09-17 12:16:03 +03:00
- bash .ci/test.sh
2016-10-11 10:54:37 +03:00
notifications :
email : false