forked from dateutil/dateutil
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
48 lines (43 loc) · 1.61 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
build: false
environment:
matrix:
- PYTHON: "C:/Python27"
- PYTHON: "C:/Python27-x64"
- PYTHON: "C:/Python33"
- PYTHON: "C:/Python33-x64"
- PYTHON: "C:/Python34"
- PYTHON: "C:/Python34-x64"
- PYTHON: "C:/Python35"
- PYTHON: "C:/Python35-x64"
- PYTHON: "C:/Python36"
- PYTHON: "C:/Python36-x64"
install:
# Add PostgreSQL (zic), Python and scripts directory to current path
- set PATH=%PYTHON%;%PYTHON%/Scripts;c:\Program Files\PostgreSQL\9.3\bin\;%PATH%
- python --version
# Not sure what the best way to get the Python minor version in a clear way
- set VERSION_CMD='python -c "import sys; print(\".\".join(map(str, sys.version_info[0:2])))"'
- for /f %%i in (%VERSION_CMD%) do set PYTHON_VERSION=%%i
# Download scripts and dependencies
- if %PYTHON_VERSION%==3.3 pip install "py<1.5.0"
- "pip install -r requirements-dev.txt"
- "pip install codecov"
# If any of our dependencies installed python-dateutil, drop it
- pip uninstall -y python-dateutil && exit 0
- pip install .
# This frequently fails with network errors, so we'll retry it up to 5 times
# with a 1 minute rate limit.
- "ci_tools/retry.bat %PYTHON%/python.exe updatezinfo.py"
# This environment variable tells the test suite it's OK to mess with the time zone.
- set DATEUTIL_MAY_CHANGE_TZ=1
before_test:
- mkdir build_test
- mkdir build_test\\test
# All these options seem to be the equivalent of cp -pr
- xcopy dateutil\\test build_test\\test /E /H /K /O /X
- cd build_test
test_script:
- "coverage run --source=dateutil -m pytest -v"
after_test:
- "coverage report -m"
- "codecov"