forked from cocreators-ee/project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
32 lines (25 loc) · 774 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
# Disable sudo to speed up the build
sudo: false
dist: trusty
language: python
python:
- "3.6"
before_install:
- wget https://github.com/bitnami-labs/sealed-secrets/releases/download/v0.9.6/kubeseal-linux-amd64 -O kubeseal
- sudo install -m 755 kubeseal /usr/local/bin/kubeseal
install:
- pip install poetry
- poetry install
- poetry run pip install \
codecov==2.0.15 \
pytest==4.6.5
script:
- poetry run coverage run --include "devops/*" -m pytest
- poetry run coverage xml -i
- mkdir coverage-reports
- mv coverage.xml coverage-reports/coverage-python.xml
- if which sonar-scanner >/dev/null; then sonar-scanner; fi # Travis why you make things difficult?
addons:
sonarcloud:
organization: "lieturd"
token: $SONAR_TOKEN