forked from pryorda/vmware_exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (51 loc) · 3.34 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
56
---
language: python
dist: xenial # required for Python >= 3.7
sudo: required
cache:
directories:
- "$HOME/.cache/pip"
- "$HOME/.pyenv"
matrix:
include:
- name: "Python 3.6 Unit-test"
python: 3.6
- name: "Python 3.7 Unit-test"
python: 3.7
- name: "Python 3.7 Docker Unit and Integration-test"
python: 3.7
services:
- docker
env:
- BUILD_SDIST=true
- INTEGRATION_TEST=true
install:
- pip install -e . -r requirements.txt -r requirements-tests.txt
- grep -Rl packagecloud /etc/apt/ |sudo xargs rm -vf
- sudo apt-get update && sudo apt-get install -y nodejs npm
- npm install -g dockerfilelint
- if [ $INTEGRATION_TEST == "true" ]; then
pip install python-semantic-release;
fi
script:
- dockerfilelint ./Dockerfile
- flake8 vmware_exporter tests
- pytest --cov=. -v tests/unit
- if [ $INTEGRATION_TEST == "true" ]; then
pytest tests/integration;
else
echo "Skipped Integration-Tests";
fi
after_success:
- codecov
- if [ $INTEGRATION_TEST == "true" ]; then
git config --global user.name "semantic-release (via TravisCI)";
git config --global user.email "semantic-release@travis";
semantic-release publish;
semantic-release changelog --post;
fi
env:
global:
- secure: qC8DzqyxBiBBBUGLuNOO2O6XgmUaLhTi1ArfhYxVDjv5vTJvCNO1DpXfFqXJGR3wrRKe1DOddXildOEL7d7xX6Y3b+k3urnPfqnAM/Hvr0djqDWRPuZl89Fg1mrAvBV3LL/ZsrWKHDc3keD/vTcPAsrnJl3MdS5fMKBwEuDmhpnNdGk0Wty357WxWBaz1JYBoGaqbw0JWAAA5UdfyF3aOybRONXcVqnxqSeR43drBLSdAwBJVVhyv3IYX3HRMCP8vXz43LqWK16z8KVPyrwwzE2WXlq+2Fyp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