-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
31 lines (26 loc) · 852 Bytes
/
.travis.yml
File metadata and controls
31 lines (26 loc) · 852 Bytes
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
language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
services:
- postgresql
install:
- python setup.py develop
- pip install -e .[test]
- pip install -U pytest
before_script:
- pip install gmaltcli
- "TMPDIR=`mktemp -d`"
- "gmalt-hgtget small $TMPDIR"
- "curl -o $TMPDIR/gmalt_api_test.sql https://raw.githubusercontent.com/gmalt/data/master/gmalt_api_test.sql"
- psql -c 'create database hgt_test;' -U postgres
- psql -U postgres -d hgt_test -c "create extension postgis;"
- "psql -U postgres -d hgt_test < $TMPDIR/gmalt_api_test.sql"
- "psql -U postgres -d hgt_test -c 'SELECT COUNT(*) FROM elevation;'"
- "psql -U postgres -d hgt_test -c 'SELECT COUNT(*) FROM elevation_raster;'"
script:
- flake8 gmaltapi
- pytest gmaltapi/tests/unit/
- pytest gmaltapi/tests/e2e/ --folder=$TMPDIR