-
Notifications
You must be signed in to change notification settings - Fork 57
/
appveyor.yml
53 lines (43 loc) · 1.33 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
# What Python version is installed where:
# http://www.appveyor.com/docs/installed-software#python
environment:
global:
PYTHONIOENCODING: utf-8
## We still need to force python yaml implementation because of
## small discrepancy between outputs of the C implementation and
## python implementation.
FORCE_PYTHON_YAML_IMPLEMENTATION: 1
matrix:
- PYTHON: "C:\\Python27"
- PYTHON: "C:\\Python27-x64"
- PYTHON: "C:\\Python37"
- PYTHON: "C:\\Python37-x64"
- PYTHON: "C:\\Python38"
- PYTHON: "C:\\Python38-x64"
- PYTHON: "C:\\Python39"
- PYTHON: "C:\\Python39-x64"
## Before repo cloning
init:
## without this, temporary directory could be created in current dir
## which will make some tests fail.
- mkdir C:\TMP
- set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
- python -V
## After repo cloning
install:
build: false
## Before tests
before_test:
- for /f %%i in ('bash .\autogen.sh --get-name') do set PACKAGE_NAME=%%i
- python setup.py develop easy_install %PACKAGE_NAME%[test]
- pip install coverage codecov
## Custom test script
test_script:
- shyaml --version
- bash bin/test
after_test:
- "codecov & REM #dovis: ignore"
- "IF DEFINED DOVIS IF DEFINED ARTIFACT_DIR IF EXIST .coverage (
cp .coverage %ARTIFACT_DIR% &&
echo %cd% > %ARTIFACT_DIR%/cover_path
)"