forked from Netflix-Skunkworks/policyuniverse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (32 loc) · 971 Bytes
/
.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
language: python
matrix:
include:
- name: "Legacy Py2.7"
python: "2.7"
env: PYTHONVER=py27
- name: "Python3.6"
python: "3.6"
env: PYTHONVER=py36
cache:
directories:
- .pip_download_cache
env:
global:
- PIP_DOWNLOAD_CACHE=".pip_download_cache"
before_script:
- pip install -e .
- if [ $PYTHONVER == "py36"]; then pip install -e .["dev"]; fi
- pip install -e .["tests"]
script:
- coverage run -a -m py.test policyuniverse/tests/test_expander_minimizer.py || exit 1
- coverage run -a -m py.test policyuniverse/tests/test_arn.py || exit 1
- coverage run -a -m py.test policyuniverse/tests/test_statement.py || exit 1
- coverage run -a -m py.test policyuniverse/tests/test_policy.py || exit 1
- if [ $PYTHONVER == "py36"]; then black --check policyuniverse || exit 1; fi
after_success:
- coveralls
- coverage report
notifications:
email: