-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathappveyor.yml
70 lines (61 loc) · 2.07 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
environment:
global:
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
# /E:ON and /V:ON options are not enabled in the batch script intepreter
# See: http://stackoverflow.com/a/13751649/163740
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\ci\\appveyor\\run_with_env.cmd"
matrix:
- PYTHON: "C:\\Python35_64"
PYTHON_VERSION: "3.5"
PYTHON_ARCH: "64"
CONDA_PY: "35"
CONDA_NPY: "18"
QTDIR: "C:\\Qt\\5.9\\msvc2015_64"
platform: x64
- PYTHON: "C:\\Python35_32"
PYTHON_VERSION: "3.5"
PYTHON_ARCH: "32"
CONDA_PY: "35"
CONDA_NPY: "18"
QTDIR: "C:\\Qt\\5.9\\msvc2015"
platform: x86
install:
# this installs the appropriate Miniconda (Py2/Py3, 32/64 bit),
# as well as pip, conda-build, and the binstar CLI
- powershell .\\ci\\appveyor\\install.ps1
#- dir /b /s /ad c:\Qt\5.6
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
#- "SET QT_PLUGIN_PATH=%QTDIR%\\plugins"
- echo %PATH%
#- choco install -y vcredist2015
- "%CMD_IN_ENV% conda config --set always_yes yes --set changeps1 no"
- "%CMD_IN_ENV% conda config --add channels inso/channel/sakia"
- "%CMD_IN_ENV% conda create -q -n test-environment python=%PYTHON_VERSION% libsodium=1.0.3 setuptools=19.2"
build_script:
- ".\\ci\\appveyor\\build.cmd"
#test_script:
- ".\\ci\\appveyor\\tests.cmd"
- echo %errorlevel%
- powershell .\\ci\\appveyor\\download_vcredist.ps1 -target %cd%\\ci\\appveyor
# Windows Installer
- choco install -y InnoSetup
- set PATH="C:\Program Files (x86)\Inno Setup 5";%PATH%
- iscc %cd%\ci\appveyor\sakia.iss /DROOT_PATH=%cd%
- move %cd%\sakia.exe %cd%\sakia-%APPVEYOR_REPO_TAG_NAME%-win%PYTHON_ARCH%.exe
artifacts:
- path: dist
name: sakia-win$(PYTHON_ARCH)
- path: sakia*.exe
name: sakia-exe
# upload to releases
deploy:
tag: $(APPVEYOR_REPO_TAG_NAME)
release: sakia $(APPVEYOR_REPO_TAG_NAME)
provider: GitHub
auth_token:
secure: wbzlh6nx1zY1J1avlB0C3hKGm1abFNHBdM60u/U09i5Nam//D6kazvnv5ZBKdR89
artifact: /sakia-/
draft: true
prerelease: true
on:
appveyor_repo_tag: true