-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (35 loc) · 953 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
39
40
41
42
43
44
45
# file: .travis.yml
# author: Jess Robertson
# date: October 2019
language: python
python:
- "3.6"
addons:
postgresql: 10
apt:
packages:
- postgresql-10-postgis-2.4
env:
global:
- PIPENV_VENV_IN_PROJECT=1
- LC_ALL=C.UTF-8
- LANG=C.UTF-8
- PIPENV_IGNORE_VIRTUALENVS=1
services:
- postgresql
before_install:
# Enable postgis & add the testing database to the build
- psql -U postgres -c 'CREATE EXTENSION postgis;'
- psql -U postgres -c 'CREATE DATABASE igsn_registry_test;'
# Push in dummy credentials to keep boto happy
- mkdir -p ~/.aws
- echo $'[default]\naws_access_key_id = f0o\naws_secret_access_key = bAr' > ~/.aws/credentials
install:
# Install everything with our pipenv
- pip install pipenv codacy-coverage
- pipenv install --ignore-pipfile --dev
# command to run tests
script:
- pipenv run flask test
after_success:
- python-codacy-coverage -r tests/reports/coverage.xml