-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
79 lines (68 loc) · 1.73 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
---
# Configuration of integration tests on travis-ci.org
language: python
cache: pip
services:
- postgresql
- rabbitmq
addons:
postgresql: "9.6"
env:
global:
- TEST_AIIDA_BACKEND: django
# show timings of tests
- PYTEST_ADDOPTS: --durations=0
matrix:
include:
# python27, develop aiida-core
- name: "python-2.7 (django)"
python: 2.7
env:
TEST_TYPE: tests
- name: "python-2.7 (sqla)"
python: 2.7
env:
TEST_TYPE: tests
TEST_AIIDA_BACKEND: sqlalchemy
- name: "python-2.7 (pre-commit)"
python: 2.7
env:
TEST_TYPE: pre-commit
# python36, develop aiida-core
- name: "python-3.6 (django)"
python: 3.6
env:
AIIDA_VERSION: develop
TEST_TYPE: tests
- name: "python-3.6 (sqla)"
python: 3.6
env:
TEST_TYPE: tests
TEST_AIIDA_BACKEND: sqlalchemy
- name: "python-3.6 (docs)"
python: 3.6
env:
TEST_TYPE: docs
READTHEDOCS: 'True'
- name: "python-3.6 (pre-commit)"
python: 3.6
env:
AIIDA_VERSION: develop
TEST_TYPE: pre-commit
# Remove this to enforce the AiiDA coding style
allow_failures:
- TEST_TYPE: pre-commit
before_install:
# Upgrade pip setuptools and wheel
- pip install -U pip wheel setuptools
install:
- pip install -e .[testing,docs,pre-commit]
- reentry scan -r aiida
- pip install coveralls
script:
- if [ "$TEST_TYPE" == "tests" ] ; then py.test --cov aiida_sirius --cov-append . ; fi # runs unit tests
- if [ "$TEST_TYPE" == "docs" ] ; then cd docs; make; fi # creates documentation
# runs precommit checks (failures allowed)
- if [ "$TEST_TYPE" == "pre-commit" ] ; then pre-commit install; pre-commit run --all-files || ( git status --short; git diff ; exit 1 ); fi
after_success:
- coveralls