-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
62 lines (49 loc) · 3.15 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
57
58
59
60
61
62
sudo: required
notifications:
email: [email protected]
env:
global:
# travis encrypt COVERALLS_REPO_TOKEN=...
- secure: "P+kM+0d6viBPR/APxTlEh1GYbi7XfoBpsNwMYFN+w6PFz0WTzn/yqDJD9mG/kmLQItbnPVcxhnOpGzsdMvrbZ8yjTSRjYeYM7WcN3LNq33qyrz2K4e4EvSSdONvptth87Veod+C6OWbZF9/rN5BmTp2Ichy4niaTJMCPsJQlTjTq2f6QoIfnHKTC9hAfa4bSfjJWUNhH8GmgH3bHUFuVpU/Ja0GGHPlhtH6snPV+eu/+PiR429laMvbRUqbSd+CxIU2RX20xV6HHYDH1ZAvoH7kid+zYNDbmKnMYq1XiiCgxLO9fm/hdON66IslwA8Ym5M5Zpv9/3KN1hnfENuHvv9KTLCjqDgIJRWD410EsNSQRdyW3JoUe36eS7YxupZ7UVO4QhPsOlj7jUSLaq4IYlfrSveTbB7Df1FRerh5bQ2X5WLIdSwOhhpmIAL5gg8lI2pBJ7GXjjSjbMPFYApGb8o3UmUcwuBVx5lSk2KgPnxw/d77OZkN+yHuJdHrGrnSCI1vTdB1duwSQpxOEwAB84HischcnsikLhBn++nGEuR/h/CWNSAoAfbv0AWGhk0lHSZEqt57UT3QcMaT2UNpnUHTPTgibrBSrmg5WmQ5abA5tpfEjgKm+l4TfZUP/srTzav6J6wDZ4olOLVn8fS6lPB4QxE10fW7FxOvGplKfvDM="
# travis encrypt CODACY_PROJECT_TOKEN=...
- secure: "HYnueDIOzN6/Wh2XiGzR2sZoKXeHlL0woY8JB/wdbL/RsOrMrLqnoC68K/D42WM4xIPyImge6DAQ/Bm17heKQnmB+ECbaCuolIDW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fnp+uCePpEticJo83wJgLvqr/bHULnTpKoL+dDW5/VJ1ROEhgskJMx2+Noa6jOaQbD1d5lBS9z4lV6vaQCXpjEWkkIPz6uIvIiB5R71bBrPOePqOJjGWQU/pCBO8U4ZS/XzHReZwkQkLXra7jWYR7NvOTa4/iC+gTKgq5ZJk/fU/iA+mg7OUNHahXfXWONlcNr/tgS/s9tc93ZBcw5jV8A2BuSl2EWXw="
git:
depth: false
services:
- docker
cache:
directories:
- $HOME/.sonar/cache
language: python
python:
- "3.6"
before_script:
- pip install --upgrade pip
- pip install -r requirements.txt
- export PYTHONPATH=src:test:$PYTHONPATH
- flake8 src test
- pylint --rcfile=setup.cfg src test -r n > pylint-report.txt 2>&1 || true
script:
- pytest -s --cov-report term-missing --cov . test/unit
- mkdir coverage
- mv .coverage coverage/.coverage.0
- pip install git+https://github.com/jameshnsears/pytest-docker-py@master
- pytest -s --cov-report term-missing --cov . test
- mv .coverage coverage/.coverage.1
- cd coverage
- coverage combine
- coverage xml -i
- mv .coverage coverage.xml ..
- cd ..
after_success:
- python-codacy-coverage -r coverage.xml
- coveralls
- sonar-scanner
after_failure:
- docker images
- docker ps -a