forked from opendatacube/datacube-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
80 lines (61 loc) · 1.97 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
76
77
78
79
80
build: false
environment:
global:
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
# /E:ON and /V:ON options are not enabled in the batch script intepreter
# See: http://stackoverflow.com/a/13751649/163740
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\.appveyor\\run_with_env.cmd"
PGUSER: postgres
PGPASSWORD: Password12!
POSTGRES: C:\Program Files\PostgreSQL\9.5\bin\
matrix:
# For Python versions available on Appveyor, see
# http://www.appveyor.com/docs/installed-software#python
# - MINICONDA: C:\\Miniconda-x64
# PYTHON_VERSION: 27
# PYTHON_ARCH: 32
- MINICONDA: C:\\Miniconda35-x64
PYTHON_VERSION: 35
# PYTHON_ARCH: 64
services:
- postgresql
init:
- ECHO %PYTHON% %PGUSER% %PGPASSWORD%
- set PATH=%MINICONDA%;%MINICONDA%\Scripts;%POSTGRES%;%PATH%
install:
- SET
- ECHO "Filesystem root:"
- ps: "ls \"C:/\""
- ECHO "System Path"
- ps: $env:Path
- ECHO "Local Path"
- ps: ls
- conda config --prepend channels conda-forge
- conda config --show-sources
- conda config --show
- conda update --all -y
- conda env create -n agdc --file .appveyor\environment_py%PYTHON_VERSION%.yaml
- activate agdc
before_test:
- createdb agdcintegration
# Print a bunch of useful information
- pip --version
- python --version
- pylint --version
- pep8 --version
- py.test --version
- conda --version
- cd
- dir
- psql -c "SELECT current_setting('TIMEZONE');"
- systeminfo
- conda env export
test_script:
- pep8 tests integration_tests --max-line-length 120
- pylint -j 4 --reports no datacube datacube_apps
# Run tests, save coverage and test results
- py.test --junit-xml=junit-results.xml --cov datacube --durations=5 datacube datacube_apps tests integration_tests
# upload results to AppVeyor
- ps: $wc = New-Object 'System.Net.WebClient'
- ps: '$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path
.\junit-results.xml))'