dist: xenial
language: python
sudo: false
group: edge
python:
  - "3.7"
cache:
  pip: true
  directories:
    - node_modules
    - $HOME/.cache/pipenv
addons:
  postgresql: 10
  apt:
    packages:
      - postgresql-10-postgis-*
env:
 - DEBUG=True
before_install:
  - nvm install node
install:
  - pip install -U pipenv wheel
  - pipenv install --dev --deploy
  - 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

dist: xenial
language: python
sudo: false
group: edge
python:
  - "3.7"
cache:
  pip: true
  directories:
    - node_modules
    - $HOME/.cache/pipenv
addons:
  postgresql: 10
  apt:
    packages:
      - postgresql-10-postgis-2.4
env:
 - DEBUG=True
before_install:
  - nvm install node
install:
  - pip install -U pipenv wheel
  - pipenv install --dev --deploy
  - 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

Revert "fix Travis PostGIS installation?"
Revert "fix Travis PostGIS installation?"

This reverts commit a7180f55a21861b3e6c055c85e2089370e53be1e.
