forked from City-of-Helsinki/city-infrastructure-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (51 loc) · 1.03 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
dist: bionic
env:
global:
- DEBUG=1
- OIDC_AUTHENTICATION_ENABLED=0
services:
- postgresql
addons:
postgresql: "10"
apt:
packages:
- postgresql-10-postgis-2.5
- postgresql-10-postgis-2.5-scripts
install:
- pip install -r requirements.txt
- pip install -r requirements-dev.txt
before_script:
- psql -U postgres template1 -c 'create extension postgis;'
- psql -U postgres -c 'create database "city-infrastructure-platform";'
script:
- flake8
- black --check .
- isort . -c
- pytest -ra -vvv --cov=.
after_success:
- curl -s https://codecov.io/bash | bash
cache: pip
matrix:
include:
- language: python
python:
- 3.6
- language: python
python:
- 3.7
- language: python
python:
- 3.8
- language: node_js
node_js:
- 12.18
before_install:
- cd map-view
install:
- yarn install
script:
- yarn test
cache:
bundler: true
directories:
- map-view/node_modules