forked from pykeen/pykeen
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
44 lines (44 loc) · 1.18 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
os: linux
cache: pip
dist: xenial
language: python
python: "3.7"
jobs:
include:
# lint stage
- name: "Check package metadata"
stage: lint
env: TOXENV=pyroma
- name: "Check package manifest"
env: TOXENV=manifest
- name: "Check code style"
env: TOXENV=flake8
- name: "Check documentation with darglint"
env: TOXENV=darglint
# - name: "Check typing with MyPy"
# env: TOXENV=mypy
# docs stage
- name: "Check RST documentation style"
stage: docs
env: TOXENV=doc8
- name: "Check readme template"
env: TOXENV=readme
- name: "Check sphinx build"
env: TOXENV=docs
# tests stages
- name: "Test fast unit tests"
stage: fast_tests
env: TOXENV=py
- name: "Test slow unit tests"
stage: slow_tests
env: TOXENV=integration
allow_failures:
- env: TOXENV=darglint
# - env: TOXENV=mypy
install:
- sh -c 'if [ "$TOXENV" = "py" ]; then pip install tox codecov coverage; else pip install tox; fi'
- sh -c 'if [ "$TOXENV" = "docs" ]; then sudo apt-get install graphviz; fi'
script:
- tox
after_success:
- sh -c 'if [ "$TOXENV" = "py" ]; then tox -e coverage-report; codecov; fi'