forked from bleachbit/bleachbit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (43 loc) · 1.3 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
language: python
os: linux
jobs:
include:
# Ubuntu 16.04 LTS (Xenial)
- dist: xenial
python: 3.5
# Ubuntu 18.04 LTS (Bionic)
- dist: bionic
python: 3.6
- dist: bionic
python: 3.7
# Ubuntu 20.04 LTS (Focal)
- dist: focal
python: 3.8
- dist: focal
python: 3.9
cache: pip
before_install:
- python --version # show Python version
- pip install -U pip # update pip itself
- export VIRT_ROOT=/home/travis/virtualenv/python$TRAVIS_PYTHON_VERSION
- export PKG_CONFIG_PATH=$VIRT_ROOT/lib/pkgconfig
install:
- sudo apt-get install gir1.2-gtk-3.0 gir1.2-notify-0.7 libgirepository1.0-dev libxml2-utils
- pip install PyGObject chardet
# coveralls.io
- pip install coveralls requests[security]
# install mock
- pip install mock
script:
# Make the same file as on AppVeyor, so coveralls does not complain.
- echo "revision = \"`git rev-parse --short HEAD `\"" >bleachbit/Revision.py
- echo "build_number = \"$TRAVIS_BUILD_NUMBER" >>bleachbit/Revision.py
# Run tests.
- xvfb-run make tests COVERAGE="coverage run --include='bleachbit/*'"
after_success:
- mv .coverage .coverage.travis
- sudo pip install appveyor-artifacts
- appveyor-artifacts -o az0 -n bleachbit -m -c $TRAVIS_COMMIT download
- coverage combine
- coverage report
- coveralls