-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathappveyor.yml
75 lines (66 loc) · 2.59 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
# .. Copyright (C) 2012-2022 Bryan A. Jones.
#
# This file is part of CodeChat.
#
# CodeChat is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option)
# any later version.
#
# CodeChat is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along
# with CodeChat. If not, see <http://www.gnu.org/licenses/>.
#
# *************************************
# |docname| - Appveyor CI configuration
# *************************************
# This was based on https://github.com/pyinstaller/pyinstaller/blob/develop/appveyor.yml
environment:
matrix:
- PYTHON: "C:\\Python38"
PYTHON_VERSION: 3.8
PYTHON_ARCH: 32
- PYTHON: "C:\\Python37"
PYTHON_VERSION: 3.7
PYTHON_ARCH: 32
init:
- ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%
install:
# Prepend newly installed Python to the PATH of this build (this cannot be
# done from inside the powershell script as it would require to restart
# the parent CMD process).
- set PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%
# Check that we have the expected version and architecture for Python
- python --version
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
# _`Appveyor pip install`: Make sure we're using the latest version of pip.
# Avoid using just ``pip install -U pip``, which produces:
#
# .. code-block:: doscon
# :linenos:
#
# Exception:
# Traceback (most recent call last):
# File "c:\python35\lib\shutil.py", line 381, in _rmtree_unsafe
# os.unlink(fullname)
# PermissionError: [WinError 5] Access is denied: 'C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\pip-dghcgnoj-uninstall\\python35\\scripts\\pip.exe'
- python -m pip install -U pip
# _`Appveyor pip install command`: In order to test, use pip to:
#
# * ``-e``: Put CodeChat in the Python path.
# * ``.[test]``: Install CodeChat's test dependencies.
#
# I can't find a way to do this using ``python setup.py develop``, so I'm
# using pip.
- pip install -e .[test]
# Install Graphviz, to allow building the docs.
- choco install graphviz
# Register it, to avoid the ``Format: "png" not recognized. Use one of...`` error.
- dot -c
build: none
test_script:
- python -m pytest ./test