forked from dean0x7d/pybinding
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
41 lines (41 loc) · 1.3 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
version: '{build}'
os: Visual Studio 2015
platform:
- x86
- x64
environment:
PYPI_USER:
secure: VNmO0xqOUrgWa0uT/HO/mg==
PYPI_PASS:
secure: gqNQRQIXkXmSul5JkOKj4owHUprr3Q4gJ6U6Mtlgm4M=
matrix:
- CONDA: 35
- CONDA: 36
install:
- git submodule update -q --init --recursive
- ps: |
if ($env:PLATFORM -eq "x64") {
$env:CMAKE_ARCH = "x64"
$env:CONDA = "$env:CONDA-x64"
}
$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:
- 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
}