forked from translate/translate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
83 lines (83 loc) · 2.36 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#True httpsTrue://travis-ci.org/#!/translate/translate
sudo: required # For now these builds are faster
language: python
python:
- 2.7
- 3.3
- 3.4
- 3.5
- 3.6
env:
matrix:
- USECPO=0 MINVERSION=1 META=
- USECPO=0 MINVERSION= META=
- USECPO=0 MINVERSION= META=1
- USECPO=1 MINVERSION= META=
#- USECPO=2
matrix:
exclude:
- python: 3.3
env: USECPO=0 MINVERSION=1 META=
- python: 3.3
env: USECPO=0 MINVERSION=1 META=1
- python: 3.3
env: USECPO=0 MINVERSION= META=1
- python: 3.4
env: USECPO=0 MINVERSION=1 META=
- python: 3.4
env: USECPO=0 MINVERSION=1 META=1
- python: 3.4
env: USECPO=0 MINVERSION= META=1
- python: 3.5
env: USECPO=0 MINVERSION=1 META=
- python: 3.5
env: USECPO=0 MINVERSION=1 META=1
- python: 3.5
env: USECPO=0 MINVERSION= META=1
- python: 3.6
env: USECPO=0 MINVERSION=1 META=
- python: 3.6
env: USECPO=0 MINVERSION=1 META=1
- python: 3.6
env: USECPO=0 MINVERSION= META=1
allow_failures:
- python: 2.7
env: USECPO=1 MINVERSION= META=
- python: 3.3
env: USECPO=1 MINVERSION= META=
- python: 3.4
env: USECPO=1 MINVERSION= META=
- python: 3.5
env: USECPO=1 MINVERSION= META=
- python: 3.6
env: USECPO=1 MINVERSION= META=
#before_install:
# # Ubuntu used by Travis only supports python3-aeidon.
# - sudo apt-get install python-aeidon
install:
- 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; 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