/
appveyor.yml
38 lines (31 loc) · 1.1 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
build: false
environment:
COVERALLS_REPO_TOKEN:
secure: zyjU+V1Ker2i3WYgdMChLSsYNDeS9BILqE0yCMSQFX0EP3vcbLYQm1vlQTIdUUuZ
# Encrypted token for coveralls
matrix:
- PYTHON: "C:\\Python35"
PYTHON_VERSION: 3.5
PYTHON_ARCH: 32
init:
- "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%"
install:
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "%PYTHON%/Scripts/pip.exe install pep8"
- "%PYTHON%/Scripts/pip.exe install coverage"
- "%PYTHON%/Scripts/pip.exe install coveralls"
# Install castxml
- ps: wget https://midas3.kitware.com/midas/download/bitstream/461597/castxml-windows.zip -OutFile castxml.zip
- cmd: echo "Unzipping castxml..."
- cmd: 7z x castxml.zip -o"C:\Program Files\" -y > nul
- cmd: set PATH=%PATH:castxml\bin=%;C:\Program Files\castxml\bin
- cmd: castxml --version
- cmd: move unittests\configs\appveyor.cfg unittests\xml_generator.cfg;
test_script:
# Install pygccxml
- "%CMD_IN_ENV% python setup.py install"
# Run the tests with coverage
- "coverage run unittests/test_all.py"
- cmd: echo "-------------"
- cmd: coverage combine
- cmd: coveralls -v