forked from GatorIncubator/gatorgrouper
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
55 lines (48 loc) · 1.21 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
dist: xenial
language: python
python:
- "3.7"
- "3.6"
- "3.5"
- "3.4"
cache:
directories:
- $HOME/.pip-cache/
# ignore the virtualenv that Travis creates
# setup a secure login to CodeCov
env:
global:
- PIPENV_VENV_IN_PROJECT=1
- PIPENV_IGNORE_VIRTUALENVS=1
- LANG=en_US.UTF-8
- LC_ALL=en_US.UTF-8
- secure: 2c0250fb-dfb1-45c9-abaf-cd3d874326c5
# install mdl for checking Markdown
before_install:
- gem install mdl
notifications:
email: never
# command to install dependencies
install:
- pip install --upgrade pip
- pip install --upgrade pipenv
- pipenv install --dev
# perform testing:
# --> run the test suite with pytest
# --> lint the functions with flake8
# --> lint the test suites with flake8
# --> lint the functions with pylint
# --> lint the test suites with pylint
# --> lint the README documentation with mdl
script:
- pipenv run pytest gatorgrouper/tests --cov-config pytest.cov --cov
- pipenv run black */**.py --check
- pipenv run black tests --check
- pipenv run flake8 tests*
- pipenv run flake8 */**.py
- pipenv run pylint tests
- pipenv run pylint */**.py
- mdl README.md
# report coverage information to CodeCov
after_success:
- pipenv run codecov