-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (34 loc) · 1.04 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
jobs:
include:
- language: python
python:
- "3.8"
install:
- pip install pytest
- pip install -e git://github.com/Luke-Pratley/Optimus-Primal.git@master#egg=optimusprimal
- python setup.py build
- python setup.py install
script: pytest -v tests/*.py
- name: codecov
language: python
python:
- "3.8"
install:
- pip install pytest-cov codecov
- pip install -e git://github.com/Luke-Pratley/Optimus-Primal.git@master#egg=optimusprimal
- python setup.py install
script:
- py.test tests/*.py --cov-report term --cov=clearskies --collect-only
# Push the results back to codecov
after_success:
- codecov
- name: lint-check
language: python
python:
- "3.8"
install:
- pip install --upgrade autopep8
script:
- autopep8 --in-place --aggressive --aggressive clearskies/*.py
- git diff
- if [[ -z "git status --porcelain" ]]; then return 1; fi;