forked from anitab-org/portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (46 loc) · 1.33 KB
/
.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
46
47
48
49
50
sudo: true
language: python
dist: bionic
env:
- MOZ_HEADLESS=1
addons:
firefox: "55.0"
services:
- postgresql
python:
- "3.6"
- "3.7"
before_install:
- wget https://github.com/mozilla/geckodriver/releases/download/v0.20.1/geckodriver-v0.20.1-linux64.tar.gz
- tar -xzvf geckodriver-v0.20.1-linux64.tar.gz
- sudo mv geckodriver /usr/local/bin
install:
- "pip install -r requirements/dev.txt"
- pip install coveralls==0.4.4
- sudo apt-get install python-gdal
before_script:
- export GOOGLE_MAPS_API_KEY=$GOOGLE_MAPS_API_KEY
- export SECRET_KEY=foobarbaz
# - curl -o ipdb.tar.gz https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key=$MAXMIND_LICENSE_KEY&suffix=tar.gz
# - tar -xzf ipdb.tar.gz -C systers_portal/
- psql -c "CREATE DATABASE systersdb;" -U postgres
script:
- coverage run systers_portal/manage.py test --settings=systers_portal.settings.testing
- flake8 systers_portal
notifications:
irc:
channels: "irc.freenode.org#systers-dev"
template:
- "%{repository}@%{branch}: %{message} (%{build_url})"
on_success: change
on_failure: change
use_notice: true
email: false
webhooks:
urls:
- https://webhooks.gitter.im/e/c403378d624b2391961e
on_success: change
on_failure: always
on_start: false
after_success:
coveralls --rcfile=.coveragerc