forked from hydpy-dev/hydpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
76 lines (66 loc) · 2.24 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
version: 6.0a0.{build}
image: Visual Studio 2019
environment:
PYPIPA:
secure: OYHmXK1t/zHOfA97P+RmCVDWG1ef8lyMQaNK/jmVAXk=
matrix:
- PYTHON: "C:\\Python37-x64"
make_exe: false
python_mode: false
cython_mode: true
- PYTHON: "C:\\Python38-x64"
make_exe: false
python_mode: true
cython_mode: false
- PYTHON: "C:\\Python39-x64"
make_exe: true
python_mode: false
cython_mode: false
- PYTHON: "C:\\Python310-x64"
make_exe: false
python_mode: false
cython_mode: true
install:
# - cinst nsis
- ps: (new-object net.webclient).DownloadFile('https://downloads.sourceforge.net/project/nsis/NSIS%203/3.05/nsis-3.05-setup.exe', 'nsis-3.05-setup.exe')
- ps: nsis-3.05-setup.exe /S
- SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
- python -m pip install --upgrade pip
- python -m pip install -r requirements.txt
- if %make_exe%==true python -m pip install pynsist
- if %make_exe%==true python -m pip install lastversion
- if %make_exe%==true python -m pip install regex
- python -m pip install twine
build: off
before_test:
- python prepare_build.py
- python -m build
- if %make_exe%==true python prepare_hydpy_installer.py
- if %make_exe%==true pynsist make_hydpy_installer.cfg
test_script:
- if %make_exe%==false nox -s doctest -- --python-mode=%python_mode% --cython-mode=%cython_mode%
- if %make_exe%==true rename hydpy _hydpy
- if %make_exe%==true SET PATH=C:\Users\appveyor\AppData\Local\Programs\HydPy\bin;%PATH%
- if %make_exe%==true nox -s installer
after_test:
- "echo [pypi] > %USERPROFILE%\\.pypirc"
- "echo username: tyralla >> %USERPROFILE%\\.pypirc"
- "echo password: %PYPIPA% >> %USERPROFILE%\\.pypirc"
- ps: if ($env:APPVEYOR_REPO_TAG -eq "true") { Invoke-Expression "twine upload --skip-existing dist/*"} else { write-output "No tag, no deploy"}
artifacts:
- name: Packages
path: dist\*
- name: Installer
path: build\nsis\HydPy*.exe
- name: XSDs
path: _hydpy\conf\*.xsd
deploy:
description: 'This is a draft.'
provider: GitHub
auth_token:
secure: n6oPRXEu1EFeFsmJYY2qnyuEOsb6OuSXQ5kf6CacHvcFcKb6JWXqPYZBzk16ZCBn
artifact: Packages,Installer,XSDs
draft: true
prerelease: false
on:
APPVEYOR_REPO_TAG: true