forked from woudc/woudc-data-registry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (39 loc) · 1002 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
46
language: python
python:
- "3.4"
env:
global:
- WDR_DEBUG=True
- WDR_DB_TYPE=postgresql
- WDR_DB_HOST=localhost
- WDR_DB_PORT=5432
- WDR_DB_NAME=woudc-data-registry
- WDR_DB_USERNAME=postgres
- WDR_DB_PASSWORD=postgres
- PGPASSWORD=postgres
- WDR_SEARCH_TYPE=elasticsearch
- WDR_SEARCH_URL=http://localhost:9200/
- WDR_WAF_BASEURL=https://woudc.org/archive/
- WDR_WAF_BASEDIR=/tmp
addons:
apt:
packages:
- pandoc
postgresql: "9.3"
services:
- postgresql
install:
- pip install -r requirements-dev.txt
- pip install coveralls
- python setup.py build
- python setup.py install
script:
- python setup.py test
- find . -type f -name "*.py" | xargs flake8
- python setup.py --long-description | rst2html5.py
after_success:
- coverage run --source=woudc_data_registry -m unittest woudc_data_registry.tests.test_data_registry
- coverage report -m
- coveralls
- python setup.py bdist_wheel
- debuild -b -uc -us