forked from translate/translate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (51 loc) · 1.56 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
#True httpsTrue://travis-ci.org/#!/translate/translate
sudo: required # For now these builds are faster
language: python
python:
- 2.7
- 3.5
- 3.6
env:
matrix:
- USECPO=0 MINVERSION= META=
#- USECPO=2
matrix:
include:
# Obtain Python 3.7 from xenial as per https://github.com/travis-ci/travis-ci/issues/9815
- python: 3.7
dist: xenial
sudo: true
# Do additional variations with Python 2.7 only
- python: 2.7
env: USECPO=0 MINVERSION=1 META=
- python: 2.7
env: USECPO=0 MINVERSION= META=1
install:
- pip install --upgrade pip wheel
- pip install coveralls
- pip install codecov
- if [[ $MINVERSION ]]; then make requirements/min-versions.txt; cat requirements/min-versions.txt; CFLAGS="-O0" pip install -r requirements/min-versions.txt; fi
- if [[ ! $MINVERSION ]]; then CFLAGS="-O0" pip install -r requirements/dev.txt; fi
# Still need to handle with indexing engines
- pip freeze
script:
- if [[ ! $META ]]; then python -m compileall -q -f .; fi # Compile all the files
- if [[ ! $META ]]; then python setup.py --quiet build; fi
- if [[ ! $META ]]; then pip install .; fi
- if [[ ! $META ]]; then py.test --cov=. -r EfsxX -W error::DeprecationWarning ; fi
- if [[ ! $META ]]; then make test-functional; fi
- if [[ $META ]]; then pycodestyle; fi
- if [[ $META ]]; then pydocstyle; fi
- if [[ $META ]]; then make docs; fi
after_success:
- coveralls
- codecov
notifications:
email:
on_failure: always
on_success: change
addons:
apt:
packages:
- gettext
- libgettextpo-dev