forked from equinor/dlisio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
75 lines (63 loc) · 1.85 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
version: 1.0.{build}
configuration:
- Release
os: Visual Studio 2015
image: Visual Studio 2015
platform:
- x86
- x64
environment:
TWINE_PASSWORD:
secure: l6EOt89SzIItVoVNEMhf/fhrJ0o+HVNn0vQmE0Opt9Y=
matrix:
- PYTHON: C:\Python35
PYTHON_VERSION: 35
- PYTHON: C:\Python36
PYTHON_VERSION: 36
- PYTHON: C:\Python37
PYTHON_VERSION: 37
matrix:
fast_finish: true
install:
- IF DEFINED PYTHON (IF "%platform%" == "x64" SET PYTHON=%PYTHON%-x64)
- IF DEFINED PYTHON SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
- IF DEFINED PYTHON pip install --upgrade
numpy
pytest
setuptools
setuptools_scm
pybind11
hypothesis
twine
wheel
git+https://github.com/jokva/scikit-build
before_build:
- set generator="Visual Studio 14 2015"
- IF "%platform%" == "x64" set generator="Visual Studio 14 2015 Win64"
- git submodule update --init --recursive
- git fetch --tags
build_script:
- ps: |
mkdir build
pushd build
- cmake %APPVEYOR_BUILD_FOLDER%
-G %generator%
-DCMAKE_CXX_FLAGS="/D_CRT_SECURE_NO_WARNINGS /EHsc"
- cmake --build . --config %configuration%
- ctest --build-config %configuration% --output-on-failure
- ps: popd
- ps: pushd python
- git describe
- IF DEFINED PYTHON python setup.py bdist_wheel -G %generator%
- ps: popd
before_deploy:
- ps: pushd python
after_deploy:
- ps: popd
deploy_script:
- ps: |
Write-Host "TAG: $env:APPVEYOR_REPO_TAG"
If ($env:APPVEYOR_REPO_TAG -eq "false") { return }
Write-Host "Uploading wheels to pypi"
Invoke-Expression "twine upload -u statoil-travis --skip-existing dist/*"
If ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }