-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
32 lines (32 loc) · 886 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
language: python
dist: xenial
# addons:
# postgresql: "10"
# apt:
# packages:
# - "postgresql-10-postgis-2.4"
python:
- "3.7"
env:
- BOTO_CONFIG=/dev/null
before_install:
- sudo apt-get install -y gdal-bin
- git clone https://github.com/mapbox/tippecanoe.git; cd tippecanoe; make -j; sudo make install; cd ..
install:
- pip install poetry
- poetry install
- npm ci
- npm run build
# before_script:
# - psql -c "CREATE USER test with PASSWORD 'test' CREATEDB SUPERUSER;" -U postgres
# - psql -c "CREATE DATABASE test;" -U postgres
# - psql -c "CREATE EXTENSION postgis;" -U postgres -d test
jobs:
include:
- script: poetry run pytest --ds=openprecincts_web.test_settings -v --nomigrations
name: "Run Tests"
- script: poetry run flake8
name: "flake8"
notifications:
email:
- ipurohit@princeton.edu