.appveyor.yml 1.06 KB
Newer Older
1
version: 4.6.0.99.{build}
2

3
image: Visual Studio 2017
4
platform: x64
5
configuration:
6
  - '3.9'
Guolin Ke's avatar
Guolin Ke committed
7

8
# only build on 'master' and pull requests targeting it
9
10
11
12
branches:
  only:
    - master

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

20
clone_depth: 5
Guolin Ke's avatar
Guolin Ke committed
21

22
install:
23
  - git submodule update --init --recursive  # get `external_libs` folder
Nikita Titov's avatar
Nikita Titov committed
24
  - set PATH=C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin;%PATH%
25
  - set PYTHON_VERSION=%CONFIGURATION%
26
  - ps: |
27
      $env:APPVEYOR = "true"
28
      $env:CMAKE_BUILD_PARALLEL_LEVEL = 4
29
      $env:MINICONDA = "C:\Miniconda3-x64"
30
31
      $env:PATH = "$env:MINICONDA;$env:MINICONDA\Scripts;$env:PATH"
      $env:BUILD_SOURCESDIRECTORY = "$env:APPVEYOR_BUILD_FOLDER"
Guolin Ke's avatar
Guolin Ke committed
32

33
build: false
34
35

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