forked from jclgoodwin/bustimes.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (38 loc) · 804 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
dist: xenial
language: python
sudo: false
group: edge
python:
- "3.6"
cache:
pip: true
directories:
- node_modules
addons:
postgresql: 10
apt:
packages:
- postgresql-10-postgis-2.4
env:
- DEBUG=True
before_install:
- rvm install 2.2
- nvm install node
install:
- pip install -U pip==18.0 pipenv wheel
- pipenv install --dev
- gem install sass
- npm install
before_script:
- psql -U postgres -c 'create extension postgis'
- psql -U postgres -c 'create database bustimes'
- ./manage.py migrate
script:
- coverage run manage.py collectstatic --noinput
- coverage run --append manage.py test
- flake8
- node_modules/.bin/sass-lint 'busstops/static/css/*' -v
- node_modules/.bin/eslint 'busstops/static/js/*.js'
after_success:
- coveralls
- git status