forked from se-sic/VaRA-Tool-Suite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (47 loc) · 1.11 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
dist: bionic
language: python
python:
- "3.6"
- "3.7"
- "3.8"
addons:
apt:
packages:
- time
- git
- libgit2-dev
- ninja-build
env:
- BB_TMP_DIR=$TRAVIS_BUILD_DIR/benchbuild/tmp
install:
- pip -V
- pip install ./varats-core
- pip install ./varats
- pip install -r requirements.txt
- pip install codecov
- pip install pytest-cov
- pip install coverage
# Currently, mypy-0.782 miss detects type errors, this bug is fixed upstream
- python3 -m pip install -U git+git://github.com/python/mypy.git
script:
- pre-commit run --from-ref origin/vara-dev --to-ref HEAD
- mkdir -p benchbuild
- coverage run -p -m pytest varats varats-core tests
- rm -rf benchbuild
- ./run_extra_tests.sh
- coverage combine -a --rcfile=.coveragerc
- coverage report
######
# Uninstalling `rich` is a hack to make the code base checkable with mypy.
# mypy get's confused when discovering rich and by that does no longer any
# type checking.
######
- pip uninstall -y rich
######
- mypy --strict -p varats
after_success:
- codecov
branches:
only:
- vara
- vara-dev