forked from orneo1212/PythonFarmGame
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.travis.yml
More file actions
26 lines (26 loc) · 732 Bytes
/
.travis.yml
File metadata and controls
26 lines (26 loc) · 732 Bytes
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
language: python
os: linux
dist: bionic
python:
- "3.9"
before_install:
- sudo apt-get update
- sudo apt-get install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev
- sudo apt-get install libportmidi-dev libjpeg-dev
env:
global:
- SDL_VIDEODRIVER=dummy
- SDL_AUDIODRIVER=disk
install:
- pip install -r requirements.txt
- pip install coverage codacy-coverage
- pip install isort pycodestyle
script:
- isort . --diff
- pycodestyle farmlib/ pygameui/ tests/ *.py*
- coverage run --source farmlib setup.py test
after_success:
- coverage report -m
- coverage xml
- export CODACY_PROJECT_TOKEN=f64f393890734af9a8b1abfae6aa5dbe
- python-codacy-coverage -r coverage.xml