-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (26 loc) · 686 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
language: python
python:
- "3.9"
# services:
# - docker
addons:
sonarcloud:
organization: "thecodingkittens"
# before_install:
# - docker build -t image .
# - docker run -it -d -p 8000:8000 --name travis image
install:
- pip install pytest
- pip install pytest-cov
- pip install coveralls
- pip install poetry
before_script:
- export PYTHONPATH="$PYTHONPATH:/app"
- poetry install
# - poetry export -f requirements.txt --output requirements.txt --without-hashes
script:
# - docker exec -e TRAVIS_JOB_ID="$TRAVIS_JOB_ID" -e TRAVIS_BRANCH="$TRAVIS_BRANCH" -i travis pytest --cov=app
- pytest --cov=app
- sonar-scanner
after_success:
- coveralls