forked from skylines-project/skylines
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
100 lines (74 loc) · 2.04 KB
/
.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
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
dist: trusty
branches:
except:
- /^dependabot\/.*$/
cache:
pip: true
yarn: true
env:
global:
# See https://git.io/vdao3 for details.
- JOBS=1
# Percy secrets are included here to enable Percy's GitHub integration
# on community-submitted PRs
- PERCY_PROJECT=skylines/skylines
- PERCY_TOKEN=81bf0245987c87eb4924eae0b085cb60596f2f0f4d4ffe27e171828535aa6812
jobs:
fast_finish: true
include:
- &backend-test
stage: test
name: Backend (Python 2.7)
language: python
python: 2.7
addons:
postgresql: "9.5"
apt:
packages:
- postgresql-9.5-postgis-2.3
- python3.5-dev
services:
- postgresql
- redis
before_install:
- pip install pipenv==2018.7.1
install:
- pipenv install --dev
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
- <<: *backend-test
name: Backend (Python 3.5)
python: 3.5
- stage: test
name: Black
language: python
python: 3.6
install:
- pip install black==18.9b0
script:
- black config migrations skylines tests *.py --check
- stage: test
name: Frontend
language: node_js
node_js: 10
addons:
chrome: stable
before_install:
- cd ember
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
- yarn global add bower
install:
- yarn install
- bower install
script:
- yarn lint
- yarn test