-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
56 lines (56 loc) · 1.46 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
51
52
53
54
55
56
language:
python
dist:
trusty
sudo:
required
python:
- "3.6"
services:
- postgresql
addons:
postgresql: "10"
apt:
packages:
- libffi-dev
- librsync-dev
- libsmbclient-dev
- libssl-dev
- libxml2-dev
- libxslt1-dev
- openssl
- postgresql-10
- postgresql-client-10
- python-dev
- python-pip
- python3-dev
env:
global:
- PGPORT=5433
before_install:
# - sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 762E3157
# - sudo apt-get -q update
install:
- pip install --upgrade pip setuptools
script:
# Travis clones the project to $TRAVIS_BUILD_DIR and CDs there before running
# the scripts.
- ls -l
- pip install -r ./requirements.txt
- python --version
- python ./dev_tools/src/d1_dev/setup-all.py --root $TRAVIS_BUILD_DIR develop
- python ./dev_tools/src/d1_dev/syspath.py
- pip freeze
- pip check || true
- pytest --version
# Create GMN template database
- python ./gmn/src/d1_gmn/tests/mk_db_template.py
# Run tests in parallel, using as many threads as are supported by Travis
- pytest -n auto --cov-config .coveragerc --cov-report=term --cov-report=xml
# - pytest -n auto --cov-config .coveragerc --cov-report=term --cov-report=xml ./gmn/src/d1_gmn/tests/test_sysmeta_extract.py -k 1010
# --cov=.
# --cov-config=tox.ini
# --cov-config=coverage.cfg --cov-report=term --cov-report=xml
after_success:
# Submit results to Coveralls.io.
- coveralls