-
Notifications
You must be signed in to change notification settings - Fork 6
/
appveyor.yml
executable file
·55 lines (47 loc) · 1.63 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
# Do not build feature branch with open Pull Requests
skip_branch_with_pr: true
# environment variables
environment:
nodejs_version: "6.9"
matrix:
- PYTHON: "C:\\Python35-x64"
PYTHON_VERSION: "3.5.x"
PYTHON_MAJOR: 3
PYTHON_ARCH: "64"
- PYTHON: "C:\\Python27"
PYTHON_VERSION: "2.7.x"
PYTHON_MAJOR: 2
PYTHON_ARCH: "32"
# build cache to preserve files/folders between builds
cache:
- '%AppData%/npm-cache'
# scripts that run after cloning repository
install:
# Install node:
- ps: Install-Product node $env:nodejs_version
# Ensure python scripts are from right version:
- 'SET "PATH=%PYTHON%\Scripts;%PYTHON%;%PATH%"'
# Install coverage utilities:
- 'pip install codecov'
# Package up sdist for our package:
- 'python setup.py sdist'
- 'for /f %%i in (''dir .\dist\provbook-*.tar.gz /B'') do set fname=%%i'
# Install our package:
- 'pip install --upgrade --upgrade-strategy=eager ".\dist\%fname%[test]"'
build: off
# scripts to run before tests
before_test:
- git config --global user.email [email protected]
- git config --global user.name "AppVeyor CI"
# Mercurial config:
- ps: '$hgconfig = "[ui]`r`nusername = AppVeyor CI <[email protected]>"'
- ps: '$hgconfig | Set-Content ($HOME + "\mercurial.ini")'
- set "tmptestdir=%tmp%\provbook-%RANDOM%"
- mkdir "%tmptestdir%"
- cd "%tmptestdir%"
# to run your custom scripts instead of automatic tests
test_script:
- 'py.test -l --cov-report xml:"%APPVEYOR_BUILD_FOLDER%\coverage.xml" --cov=provbook --pyargs provbook'
on_success:
- cd "%APPVEYOR_BUILD_FOLDER%"
- codecov -X gcov --file "%APPVEYOR_BUILD_FOLDER%\coverage.xml"