forked from skylines-project/skylines
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
60 lines (45 loc) · 1.06 KB
/
Copy path.travis.yml
File metadata and controls
60 lines (45 loc) · 1.06 KB
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
dist: trusty
sudo: false
language: python
python:
- 2.7
env:
global:
# See https://git.io/vdao3 for details.
- JOBS=1
addons:
chrome: stable
postgresql: "9.5"
apt:
packages:
- postgresql-9.5-postgis-2.3
services:
- postgresql
- redis
cache:
pip: true
yarn: true
before_install:
- pip install pipenv
- nvm install 10
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
- yarn global add bower
install:
- pipenv install --dev
- cd ember
- yarn 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;'
script:
# Run the test suite
- pipenv run py.test -vv --color=yes --cov=skylines --cov-report term-missing:skip-covered
- cd ember
- yarn test