-
Notifications
You must be signed in to change notification settings - Fork 18
/
.appveyor.yml
56 lines (48 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
image:
- Visual Studio 2015
environment:
global:
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd"
matrix:
# For Python versions available on Appveyor, see
# http://www.appveyor.com/docs/installed-software#python
# The list here is complete (excluding Python 2.6, which
# isn't covered by this document) at the time of writing.
# - PYTHON: "C:\\Python27"
# - PYTHON: "C:\\Python33"
# - PYTHON: "C:\\Python34"
# - PYTHON: "C:\\Python35"
- PYTHON: "C:\\Python27-x64"
BIN_NAME: appr-win-x64
PYTHON_ARCH: "64"
PYTHON_VERSION: "2.7.x"
APPR_TEST_DB: "filesystem"
# - PYTHON: "C:\\Python33-x64"
# - PYTHON: "C:\\Python34-x64"
# - PYTHON: "C:\\Python35-x64"
install:
- ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\""
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "pip install setuptools>=6.0"
- "python --version"
# Upgrade to the latest version of pip to avoid it displaying warnings
# about it being out of date.
- "pip install --disable-pip-version-check --user --upgrade pip"
# # We need wheel installed to build wheels
- "pip install -r requirements_dev.txt"
# - "pip install jsonnet"
- "pip install -e ."
- "pip install -e git+https://github.com/pyinstaller/pyinstaller.git#egg=pyinstaller"
- "pyinstaller --add-data appr/jsonnet;appr/jsonnet --onefile bin/appr"
- ps: "ls dist"
- "copy dist\\appr.exe %BIN_NAME%.exe"
build: off
test_script:
# Run the project tests
- py.test --cov=appr --cov-report=html --cov-report=term-missing --verbose tests -m "not live" -m "not jsonnet" --cov-config=.coverage-unit.ini
- "C:\\projects\\appr\\dist\\appr.exe version quay.io"
- "C:\\projects\\appr\\dist\\appr.exe plugins install helm"
after_test: []
artifacts:
# Archive the generated packages in the ci.appveyor.com build report.
- path: "%BIN_NAME%.exe"