.appveyor.yml 1.43 KB
Newer Older
1
version: 2.3.2.{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.7
Guolin Ke's avatar
Guolin Ke committed
7

8
9
10
11
12
13
# only build pull requests and
# commits to 'master'
branches:
  only:
    - master

Guolin Ke's avatar
Guolin Ke committed
14
15
environment:
  matrix:
16
17
    - COMPILER: MINGW
      TASK: r-package
18
19
20
    - COMPILER: MSVC
      TASK: r-package
      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
21
    - COMPILER: MSVC
22
      TASK: python
23
    - COMPILER: MINGW
24
      TASK: python
Guolin Ke's avatar
Guolin Ke committed
25

26
clone_depth: 5
Guolin Ke's avatar
Guolin Ke committed
27

28
install:
29
  - git submodule update --init --recursive  # get `compute` folder
30
  - set PATH=%PATH:C:\Program Files\Git\usr\bin;=%  # delete sh.exe from PATH (mingw32-make fix)
Nikita Titov's avatar
Nikita Titov committed
31
  - set PATH=C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin;%PATH%
32
  - set PYTHON_VERSION=%CONFIGURATION%
33
  - set CONDA_ENV="test-env"
34
35
  - ps: >-
      switch ($env:PYTHON_VERSION) {
36
37
38
39
40
          "2.7" {$env:MINICONDA = "C:\Miniconda-x64"}
          "3.5" {$env:MINICONDA = "C:\Miniconda35-x64"}
          "3.6" {$env:MINICONDA = "C:\Miniconda36-x64"}
          "3.7" {$env:MINICONDA = "C:\Miniconda37-x64"}
          default {$env:MINICONDA = "C:\Miniconda37-x64"}
41
      }
42
43
      $env:PATH="$env:MINICONDA;$env:MINICONDA\Scripts;$env:PATH"
  - ps: $env:LGB_VER = (Get-Content $env:APPVEYOR_BUILD_FOLDER\VERSION.txt).trim()
Guolin Ke's avatar
Guolin Ke committed
44

45
build: false
46
47

test_script:
48
49
  - conda init powershell
  - powershell.exe -ExecutionPolicy Bypass -File %APPVEYOR_BUILD_FOLDER%\.ci\test_windows.ps1