LightGBM/.travis.yml

69 строки
1.6 KiB
YAML
Исходник Обычный вид История

if: branch = master
2016-10-11 10:54:37 +03:00
language: cpp
git:
submodules: true
depth: 5
os:
- linux
- osx
dist: focal
osx_image: xcode12
env:
global: # default values
- PYTHON_VERSION=3.8
matrix:
- 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
- TASK=lint
- TASK=check-docs
- TASK=mpi METHOD=source
- TASK=mpi METHOD=pip PYTHON_VERSION=3.7
- TASK=gpu METHOD=source
- TASK=gpu METHOD=pip PYTHON_VERSION=3.6
matrix:
exclude:
- os: osx
env: TASK=gpu METHOD=source
- os: osx
env: TASK=gpu METHOD=pip PYTHON_VERSION=3.6
- os: osx
env: TASK=lint
- os: osx
env: TASK=check-docs
2016-10-11 10:54:37 +03:00
before_install:
- test -n $CC && unset CC
- test -n $CXX && unset CXX
- export BUILD_DIRECTORY="$TRAVIS_BUILD_DIR"
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then
export OS_NAME="macos";
export COMPILER="gcc";
else
export OS_NAME="linux";
export COMPILER="clang";
fi
2019-02-18 09:37:36 +03:00
- export CONDA="$HOME/miniconda"
- export PATH="$CONDA/bin:$PATH"
- export CONDA_ENV="test-env"
2018-06-10 03:48:37 +03:00
- export LGB_VER=$(head -n 1 VERSION.txt)
- export AMDAPPSDK_PATH=$HOME/AMDAPPSDK
- export LD_LIBRARY_PATH="$AMDAPPSDK_PATH/lib/x86_64:$LD_LIBRARY_PATH"
- 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
- export OPENCL_VENDOR_PATH=$AMDAPPSDK_PATH/etc/OpenCL/vendors
install:
- bash .ci/setup.sh
2016-10-11 10:54:37 +03:00
script:
- bash .ci/test.sh
2016-10-11 10:54:37 +03:00
notifications:
email: false