-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathappveyor.yml
96 lines (80 loc) · 3.15 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
image: Visual Studio 2017
platform:
- x64
environment:
# PYTHON_HOME: "C:\\Python37-x64"
CONAN_LOGIN_USERNAME: "admin"
CONAN_PASSWORD:
secure: g+1lNdgrCLmyKNf3KvbHSln5A1H7BsVhsMsIbwgo+UU=
VS150COMNTOOLS: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\Common7\\Tools\\"
CONAN_UPLOAD: http://cytosplore.lumc.nl:8081/artifactory/api/conan/conan-local
CONAN_REMOTE: lkebconan
CONAN_STABLE_BRANCH_PATTERN: "release/*"
CONAN_UPLOAD_ONLY_WHEN_STABLE: 1
TWINE_USER: "bldrvnlw"
TWINE_PASSWORD:
secure: ufFmk5mpUWD6RxByaYnTtQ==
TWINE_TESTPYPI_PASSWORD:
secure: XXPgXJ36t6jmHJme3A5Tpw==
git_token:
secure: QWv3xZwtKaenz3mj6q8vHKMKfSFvM2GghbNyPIqg0HAHKBJSxP2fKTsVDUaLuH+M
matrix:
### Limit build to 2015, x64 , Release, Shared
- PYTHON: "C:\\Python37-x64"
CONAN_VISUAL_VERSIONS: 15
CONAN_ARCHS: x86_64
CONAN_BUILD_TYPES: Release
CONAN_VISUAL_RUNTIMES: MD
BUILD_SHARED: True
Python3_ROOT_DIR: C:\Python37-x64
PYTHON_VERSION: 3.7
USE_FOR_DOC_GENERATION: False
LIBSDIR: "%TMP%\\cibwlibsdir"
CIBW_TEST_COMMAND: "python %APPVEYOR_BUILD_FOLDER%\\test\\run_doctest.py"
CIBW_BUILD: "cp36-win_amd64 cp37-win_amd64 cp38-win_amd64"
CIBW_SKIP: "cp2*"
CIBW_BUILD_VERBOSITY: 3
CIBW_BEFORE_BUILD: "rd /s /q %TMP%\\cibwlibsdir & mkdir %TMP%\\cibwlibsdir & pip install --upgrade pip & pip install -r requirements.txt & call .\\.ci\\prepare_conan.sh"
init:
- cmd: set PATH=C:\Python37-x64;C:\Python37-x64\Scripts;%PATH%
install:
- git submodule update --init --recursive
- set PYTHON_PATH=%Python3_ROOT_DIR% # Python3_ROOT_DIR is required to hint the CMake find_package Python3
- python --version
- pip install cibuildwheel>=1.5.2
- pip install gitpython
- pip install twine
skip_commits:
files:
- README.md
- travis.yml
notifications:
- provider: Email
to:
- b.van_lew@lumc.nl
subject: nptsne Windows build {{status}}
message: "URL is {{buildUrl}} Commit ID {{commitId}}. Messages {{jobs.0.messages.0.message}}"
on_build_success: true
on_build_failure: true
on_build_status_changed: true
before_build:
- echo %PATH%
build_script:
- python setup.py sdist -d wheelhouse --formats=gztar
- python -m cibuildwheel --output-dir wheelhouse
# - if "%USE_FOR_DOC_GENERATION%" == "False" (cmake --build . --target install_nptsne --config Release)
- cmake -D WHEEL_GLOB=wheelhouse\nptsne*.whl -D BUILD_NUMBER=$APPVEYOR_BUILD_NUMBER -P %APPVEYOR_BUILD_FOLDER%\cmake\UploadWheel.cmake
on_success:
- echo "In success"
artifacts:
- path: "wheelhouse\\*.whl"
name: Wheels
deploy_script:
ps: >-
if ($env:APPVEYOR_REPO_TAG -eq $true) {
Write-Output("Deploying to PyPI")
cmd /c 'twine upload -u %TWINE_USER% -p %TWINE_PASSWORD% --verbose --repository pypi wheelhouse/* 2>&1'
} else {
Write-Output("Deploying to PyPI-Test")
cmd /c 'twine upload -u %TWINE_USER% -p %TWINE_TESTPYPI_PASSWORD% --verbose --repository testpypi wheelhouse/* 2>&1'
}