forked from skylines-project/skylines
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (39 loc) · 963 Bytes
/
.travis.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
language: python
python:
- 2.7
sudo: false
services:
- postgresql
- redis
cache: pip
before_install:
- nvm install 4
- npm config set spin false
- npm install -g bower
- npm install phantomjs-prebuilt
install:
# Install SkyLines Python dependencies
- pip install -e .
# Install testing dependencies
- pip install -r requirements.txt
- cd ember
- npm install
- bower install
- cd ..
before_script:
# Create the testing database
- psql -U postgres -c 'CREATE DATABASE skylines_test;'
# Install PostGIS extension into the database
- psql -U postgres -d skylines_test -c 'CREATE EXTENSION postgis;'
# Install fuzzystrmatch extension into the database
- psql -U postgres -d skylines_test -c 'CREATE EXTENSION fuzzystrmatch;'
- cd ember
- node_modules/.bin/ember build
- cd ..
# Generate asset files
- ./manage.py assets build
script:
# Run the test suite
- py.test tests
- cd ember
- npm test