.appveyor.yml 1.26 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"
32
33
34
      # tell scripts where to put artifacts
      # (this variable name is left over from when jobs ran on Azure DevOps)
      $env:BUILD_ARTIFACTSTAGINGDIRECTORY = "$env:APPVEYOR_BUILD_FOLDER/artifacts"
Guolin Ke's avatar
Guolin Ke committed
35

36
build: false
37
38

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