-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
66 lines (52 loc) · 1.94 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
# version format
version: "{build}"
skip_tags: false
clone_depth: 20
os: Visual Studio 2015
environment:
matrix:
- PYTHON: "C:\\Python36-x64"
PYTHON_VERSION: "3.6.1"
PYTHON_ARCH: "64"
ARCH: x86_64
VS_VER: "2015"
init:
- ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%
install:
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- git submodule init
- git submodule update --recursive
# 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"
# Should this be done here or via setup some how? it should not be part of the build/install requirements, just development
- "pip install pytest"
# Install the build dependencies of the project. If some dependencies contain
# compiled extensions and are not provided as pre-built wheel packages,
# pip will build them from source using the MSVC compiler matching the
# target Python version and architecture
- cd "%APPVEYOR_BUILD_FOLDER%"
- python -c "import os; print(os.getcwd())"
- "pip install -r requirements.txt"
test_script:
- cd "%APPVEYOR_BUILD_FOLDER%"
# - pytest --fulltrace --doctest-modules --junitxml=%APPVEYOR_BUILD_FOLDER\junit.xml summarize
# sanity of pyinstaller artifacts
- mkdir "%APPVEYOR_BUILD_FOLDER%\\pyinstaller_test"
- cd "%APPVEYOR_BUILD_FOLDER%\\pyinstaller_test"
- 7z x "%APPVEYOR_BUILD_FOLDER%\dist\summarize.zip"
- cd summarize
- summarize.exe --help
build_script:
- cd "%APPVEYOR_BUILD_FOLDER%"
- "pip install -r requirements.txt"
- "pyinstaller summarize.spec"
- cd "%APPVEYOR_BUILD_FOLDER%\\dist"
# TODO: proper versions for both the zipped directory and the zip file
# TODO -1: version reporting correctly for both summarize and emotool
- 7z a summarize.zip summarize
- dir %APPVEYOR_BUILD_FOLDER%
- dir %APPVEYOR_BUILD_FOLDER%\dist
artifacts:
- path: dist\summarize.zip
name: Summarize