-
Notifications
You must be signed in to change notification settings - Fork 69
/
.appveyor.yml
49 lines (49 loc) · 1.42 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
version: '{build}'
os: Visual Studio 2019
platform:
- x86
- x64
environment:
PYPI_USER:
secure: VNmO0xqOUrgWa0uT/HO/mg==
PYPI_PASS:
secure: gqNQRQIXkXmSul5JkOKj4owHUprr3Q4gJ6U6Mtlgm4M=
matrix:
- CONDA: 36
- CONDA: 37
- CONDA: 38
matrix:
exclude:
- platform: x86
CONDA: 38
install:
- git submodule update -q --init --recursive
- ps: |
if ($env:PLATFORM -eq "x64") {
$env:CMAKE_ARCH = "x64"
$env:CONDA = "$env:CONDA-x64"
} else {
$env:CMAKE_ARCH = "Win32"
}
$env:AppVeyorLogger = "C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
$env:PATH = "C:\Miniconda$env:CONDA\;C:\Miniconda$env:CONDA\Scripts\;$env:PATH"
conda config --set always_yes yes --set changeps1 no
conda config --add channels conda-forge
conda update -q conda
conda install -q numpy scipy matplotlib pytest
conda info -a
build_script:
- mkdir build && cd build && cmake -A "%CMAKE_ARCH%" -DPB_WERROR=ON -DPB_NATIVE_SIMD=OFF ..
- cmake --build . --config Release -- /m /v:m /logger:"%AppVeyorLogger%"
test_script:
- activate base
- cmake --build . --config Release --target tests -- /v:m
deploy_script:
- ps: |
if ($env:APPVEYOR_REPO_TAG -eq "true") {
conda install -q setuptools wheel twine
cd $env:APPVEYOR_BUILD_FOLDER
$env:PB_NATIVE_SIMD = "OFF"
python setup.py bdist_wheel
twine upload -u $env:PYPI_USER -p $env:PYPI_PASS --skip-existing dist\*.whl
}