-
Notifications
You must be signed in to change notification settings - Fork 7
/
appveyor.yml
60 lines (44 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
environment:
matrix:
- PYTHON: "C:\\Python27"
PYTHON_VERSION: "2.7.8"
PYTHON_ARCH: "64"
services:
- postgresql93
init:
- "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%"
install:
#################################
# Installing postgis
#################################
- choco install -y postgis-9.3
- SET OPENSPENDING_SETTINGS=./test_settings.py
#################################
# Download and install Erlang
#################################
- echo Downloading Erlang...
- ps: (new-object System.Net.WebClient).Downloadfile('http://www.erlang.org/download/otp_win32_17.5.exe', 'C:\Users\appveyor\erlang.exe')
- echo Installing Erlang...
- start /B /WAIT C:\Users\appveyor\erlang.exe /S /D=C:\Users\appveyor\erlang
- set ERLANG_HOME=C:\Users\appveyor\erlang
#################################
# Download and install RabbitMQ
#################################
- echo Downloading Rabbit...
- ps: (new-object System.Net.WebClient).Downloadfile('https://www.rabbitmq.com/releases/rabbitmq-server/v3.5.2/rabbitmq-server-3.5.2.exe', 'C:\Users\appveyor\rabbit.exe')
- echo Installing Rabbit...
- start /B /WAIT C:\Users\appveyor\rabbit.exe /S
- ps: (Get-Service -Name RabbitMQ).Status
#################################
# Install everything else
#################################
- pip install -r requirements.txt -e .
- pip install psycopg2 coveralls
- psql -c 'create database openspending_testing;' -U postgres
- psql -d openspending_testing -U postgres -c "create extension postgis"
- pg_restore -d openspending_testing -U postgres < ./openspending/tests/fixtures/testing_database.backup
build: false # Not a C# project, build stuff at the test step instead.
test_script:
- nosetests --with-coverage --cover-package=openspending
after_test:
- coveralls