2020-12-09 13:27:37 +03:00
|
|
|
version: 3.1.1.99.{build}
|
2017-09-08 13:17:00 +03:00
|
|
|
|
2018-09-12 05:40:11 +03:00
|
|
|
image: Visual Studio 2015
|
|
|
|
platform: x64
|
|
|
|
configuration: # a trick to construct a build matrix with multiple Python versions
|
2020-02-08 15:58:10 +03:00
|
|
|
- 3.7
|
2017-06-18 14:44:57 +03:00
|
|
|
|
2020-05-17 02:32:36 +03:00
|
|
|
# only build pull requests and
|
|
|
|
# commits to 'master'
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
2017-06-18 14:44:57 +03:00
|
|
|
environment:
|
|
|
|
matrix:
|
2018-09-12 05:40:11 +03:00
|
|
|
- COMPILER: MSVC
|
2020-04-01 20:38:34 +03:00
|
|
|
TASK: python
|
2018-09-12 05:40:11 +03:00
|
|
|
- COMPILER: MINGW
|
2020-04-01 20:38:34 +03:00
|
|
|
TASK: python
|
2017-06-18 14:44:57 +03:00
|
|
|
|
2019-10-22 02:21:05 +03:00
|
|
|
clone_depth: 5
|
2017-06-18 14:44:57 +03:00
|
|
|
|
2017-09-08 13:17:00 +03:00
|
|
|
install:
|
2017-09-10 03:27:48 +03:00
|
|
|
- git submodule update --init --recursive # get `compute` folder
|
2018-06-09 05:04:57 +03:00
|
|
|
- set PATH=%PATH:C:\Program Files\Git\usr\bin;=% # delete sh.exe from PATH (mingw32-make fix)
|
2019-04-09 05:23:32 +03:00
|
|
|
- set PATH=C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin;%PATH%
|
2017-09-08 13:17:00 +03:00
|
|
|
- set PYTHON_VERSION=%CONFIGURATION%
|
2020-04-01 20:38:34 +03:00
|
|
|
- set CONDA_ENV="test-env"
|
2017-09-08 13:17:00 +03:00
|
|
|
- ps: >-
|
|
|
|
switch ($env:PYTHON_VERSION) {
|
2020-04-01 20:38:34 +03:00
|
|
|
"3.6" {$env:MINICONDA = "C:\Miniconda36-x64"}
|
|
|
|
"3.7" {$env:MINICONDA = "C:\Miniconda37-x64"}
|
|
|
|
default {$env:MINICONDA = "C:\Miniconda37-x64"}
|
2017-09-08 13:17:00 +03:00
|
|
|
}
|
2020-04-01 20:38:34 +03:00
|
|
|
$env:PATH="$env:MINICONDA;$env:MINICONDA\Scripts;$env:PATH"
|
|
|
|
- ps: $env:LGB_VER = (Get-Content $env:APPVEYOR_BUILD_FOLDER\VERSION.txt).trim()
|
2017-06-18 14:44:57 +03:00
|
|
|
|
2020-04-01 20:38:34 +03:00
|
|
|
build: false
|
2018-09-12 05:40:11 +03:00
|
|
|
|
|
|
|
test_script:
|
2020-04-01 20:38:34 +03:00
|
|
|
- conda init powershell
|
|
|
|
- powershell.exe -ExecutionPolicy Bypass -File %APPVEYOR_BUILD_FOLDER%\.ci\test_windows.ps1
|