.appveyor.yml 1.22 KB
Newer Older
1
version: 4.2.0.99.{build}
2

3
4
5
image: Visual Studio 2015
platform: x64
configuration:  # a trick to construct a build matrix with multiple Python versions
6
  - '3.8'
Guolin Ke's avatar
Guolin Ke committed
7

8
# only build pull requests and
9
# commits to 'master' or any branch starting with 'release'
10
11
12
branches:
  only:
    - master
13
    - /^release/
14

Guolin Ke's avatar
Guolin Ke committed
15
16
environment:
  matrix:
17
    - COMPILER: MSVC
18
      TASK: python
19
    - COMPILER: MINGW
20
      TASK: python
Guolin Ke's avatar
Guolin Ke committed
21

22
clone_depth: 5
Guolin Ke's avatar
Guolin Ke committed
23

24
install:
25
  - git submodule update --init --recursive  # get `external_libs` folder
Nikita Titov's avatar
Nikita Titov committed
26
  - set PATH=C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin;%PATH%
27
  - set PYTHON_VERSION=%CONFIGURATION%
28
  - set CONDA_ENV="test-env"
29
  - ps: |
30
      $env:MINICONDA = "C:\Miniconda3-x64"
31
32
33
      $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()
Guolin Ke's avatar
Guolin Ke committed
34

35
build: false
36
37

test_script:
38
39
  - conda config --remove channels defaults
  - conda config --add channels nodefaults
40
41
  - conda config --add channels conda-forge
  - conda config --set channel_priority strict
42
43
  - conda init powershell
  - powershell.exe -ExecutionPolicy Bypass -File %APPVEYOR_BUILD_FOLDER%\.ci\test_windows.ps1