-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path.travis.yml
55 lines (47 loc) · 2.52 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"
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
- secure: w+T1S2Z8HjBjTrjXAqlyoBTp5vk/l0s2ycxaw+GlhIvHAea5PEfV0Pj7au4turtDY38/U4KwlgyfvekfH2H3umrhQeLZVJKCTHOmdbtJcabtrgW2QdjAan0FeULWNdMDISqpr7iXmCOA9J5fIxjv7gh3hjIhwp/ccufA+cDnk2xVMqyfX46q/mL1x4IQDpOQ29upjPibsDJjoNu/Es9N2KsWHrH4LILX8Rpz3BG3XboFk3KAvk8KVlnxrWzmGCPKKdaOqdjJGxPF/RlX0tqH1Dcg42H7Zncx8rjjh0fegxvvN1qT2PY/vxb6UaUeR1rRuIVk3r7J7eW8EV0sHRyPlSky5YoThpm/t5FPlYL1RH3cNMl/760S3jjlEGB/xTSTP5kA/xFLfm7ukbK8zzz0zf2aCpucMzynaKH8mDcHDnkbpKOJbJUMbv4clhoEQlXir20i5hv2oiqxw68OIjJHEfwQCCN1QFB/SeWGti3f2caHdwCeGSHq2r3xlED9qvj3BcrCUCL5L4dgvz6lydIHfnMk/jvAyEbN6+7s6Dddkziu1mb68325DP0vxPgBmRKIKPNLZKcEfgkiTbQ5AD7sgAIgoRlRl9uM7jCshWma9SyvvxwgtOxlriw4r9RUc0+eL+4K/p9rbVKeLbyu6dmPFa+QrIhha7yT8tN9hXkUAeI=
- secure: swgOxSq7aGuxRZgDKTo4BovWNqbpLlQr4CglLxqfFi67zluGjqCkoHYLe6MudxYun9BtubUafnYsP7U9hFrEvtW1ZSTr6jS2v4DeTB7M68DEP4d5oM20ByPI2ckVYqQFDA/wYBkDXBlAfNU/A6En5raAB2+U2GOSbPTkJVhVY7+3o1wKOg8EsckIcYJFxuLwrogNwkOJlsUBk74ZQlavZzDIcAR6Y/CMv5QEzsawaFBOnGTHQwoBUiSY/sKMZpSVBgDbTvuflgVSNQtqyRTs1rc14MljpyTOSiHvWWmuBJVBW9ywNf/QqBTLLuElSYXdBC0aNFoNFOmSAh/CeJEDYTOsoNem55DNIZfmQ13aEhBm1Awo31R3AdT30z10AABT8MEUF7RL8c6azuSNiOrnLsHBadAQUgI05KY5tYywgdQ2RuBM1w50EQ54nPVQnN5ueqlBbMz9LMGu8UjJCIvDp0JMuhLj+lVohHwUVHilRdaf8mwJs2/eBU9P2LUYKI+mWcxvWuEgqeoVbEth2xcqxNbOpjspOeghWLZO1WMcIc288y8cK/F+ghoCJCF5wuHBuLAmH3aC5b6aUsmp7Sje9wV1psLHNkObz422rtq15AjODnBLCngjuQWs/hgol63iuI/c6Fbgb/eYlb3wBiURHsuMKFNbJwAQjEejL8hP0cc=
# 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 and codecov
# --> Check for black format
# --> 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:
- shopt -s globstar
- pipenv run pytest tests --cov-config pytest.cov --cov
- pipenv run black **/*.py --check
- pipenv run flake8 **/*.py
- pipenv run pylint **/*.py
- mdl README.md
# report coverage information to CodeCov
after_success:
- pipenv run codecov