forked from wooey/Wooey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
61 lines (54 loc) · 1.8 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
environment:
PYTHONIOENCODING: "utf-8"
matrix:
- PYTHON: "C:/Python27"
DJANGO: "Django==1.6.*"
- PYTHON: "C:/Python27"
DJANGO: "Django==1.7.*"
- PYTHON: "C:/Python27"
DJANGO: "Django==1.8.*"
# keep this to just maintain the latest version
- PYTHON: "C:/Python27"
DJANGO: "Django"
- PYTHON: "C:/Python34"
DJANGO: "Django==1.6.*"
- PYTHON: "C:/Python34"
DJANGO: "Django==1.7.*"
- PYTHON: "C:/Python34"
DJANGO: "Django==1.8.*"
# keep this to just maintain the latest version
- PYTHON: "C:/Python34"
DJANGO: "Django"
# These versions of Django are not supported with Python3.5
#- PYTHON: "C:/Python35"
# DJANGO: "Django==1.6.*"
#- PYTHON: "C:/Python35"
# DJANGO: "Django==1.7.*"
- PYTHON: "C:/Python35"
DJANGO: "Django==1.8.*"
# keep this to just maintain the latest version
- PYTHON: "C:/Python35"
DJANGO: "Django"
init:
- "ECHO %PYTHON%"
- "ECHO %path%"
- ps: "ls C:/Python*"
install:
- ps: (new-object net.webclient).DownloadFile('https://bootstrap.pypa.io/get-pip.py', 'C:/get-pip.py')
- "%PYTHON%/python.exe C:/get-pip.py"
- "%PYTHON%/Scripts/pip.exe install -r requirements.txt"
- "%PYTHON%/Scripts/pip.exe install --upgrade %DJANGO%"
- "%PYTHON%/Scripts/pip.exe install -e ."
# setup our path to include python scripts
- cmd: SET PATH=%PATH%;%PYTHON%/Scripts
build: off
test_script:
- "%PYTHON%/Scripts/pip.exe --version"
- "%PYTHON%/Scripts/nosetests.exe --with-coverage --cover-erase --cover-package=wooey tests"
- ps:
if($env:DJANGO -eq "Django==1.6.*"){
"%PYTHON%/Scripts/django-admin test --settings=wooey.test_settings wooey.tests"
}
else {
"%PYTHON%/Scripts/django-admin.exe test --settings=wooey.test_settings wooey.tests"
}