2022-01-07 22:05:05 +03:00
|
|
|
version: 3.3.2.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
|
2022-02-19 06:24:16 +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:
|
2021-01-22 17:45:43 +03:00
|
|
|
- git submodule update --init --recursive # get `external_libs` 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"
|
2020-12-22 14:20:01 +03:00
|
|
|
- ps: |
|
2022-02-18 03:36:41 +03:00
|
|
|
$env:MINICONDA = "C:\Miniconda3-x64"
|
2020-12-22 14:20:01 +03:00
|
|
|
$env:PATH = "$env:MINICONDA;$env:MINICONDA\Scripts;$env:PATH"
|
|
|
|
$env:BUILD_SOURCESDIRECTORY = "$env:APPVEYOR_BUILD_FOLDER"
|
|
|
|
$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:
|
2022-02-12 04:08:37 +03:00
|
|
|
- conda config --add channels conda-forge
|
|
|
|
- conda config --set channel_priority strict
|
2020-04-01 20:38:34 +03:00
|
|
|
- conda init powershell
|
|
|
|
- powershell.exe -ExecutionPolicy Bypass -File %APPVEYOR_BUILD_FOLDER%\.ci\test_windows.ps1
|