forked from parkouss/funq
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
149 lines (127 loc) · 3.27 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
sudo: required
cache:
- pip
- ccache
notifications:
email:
on_success: change
on_failure: change
services:
- xvfb
env:
global:
- FUNQ_CXXFLAGS="-Wall -Wextra -Werror" # make CI fail on warnings
matrix:
fast_finish: true
include:
# MacOS Qt5 Python2
- os: osx
language: cpp
env: QT_SELECT=5 PYTHON=python2
# MacOS Qt5 Python3
- os: osx
language: cpp
env: QT_SELECT=5 PYTHON=python3
# Linux Qt4 Python2.7
- os: linux
dist: trusty
language: python
python: 2.7
env: QT_SELECT=4 PYTHON=python
# Linux Qt4 Python3.4
- os: linux
dist: trusty
language: python
python: 3.4
env: QT_SELECT=4 PYTHON=python
# Linux Qt5.2.1 Python2.7
- os: linux
dist: trusty
language: python
python: 2.7
env: QT_SELECT=5.2.1 PYTHON=python
# Linux Qt5.3.2 Python3.4
- os: linux
dist: trusty
language: python
python: 3.4
env: QT_SELECT=5.3.2 PYTHON=python
# Linux Qt5.4.2 Python2.7
- os: linux
dist: trusty
language: python
python: 2.7
env: QT_SELECT=5.4.2 PYTHON=python
# Linux Qt5.5.1 Python3.4
- os: linux
dist: trusty
language: python
python: 3.4
env: QT_SELECT=5.5.1 PYTHON=python
# Linux Qt5.6.3 Python2.7
- os: linux
dist: trusty
language: python
python: 2.7
env: QT_SELECT=5.6.3 PYTHON=python
# Linux Qt5.7.1 Python3.4
- os: linux
dist: trusty
language: python
python: 3.4
env: QT_SELECT=5.7.1 PYTHON=python
# Linux Qt5.8 Python2.7
- os: linux
dist: trusty
language: python
python: 2.7
env: QT_SELECT=5.8 PYTHON=python
# Linux Qt5.9.6 Python3.4
- os: linux
dist: trusty
language: python
python: 3.4
env: QT_SELECT=5.9.6 PYTHON=python
# Linux Qt5.10.1 Python2.7
- os: linux
dist: trusty
language: python
python: 2.7
env: QT_SELECT=5.10.1 PYTHON=python
# Linux Qt5.11.3 Python2.7
- os: linux
dist: xenial
language: python
python: 2.7
env: QT_SELECT=5.11.3 PYTHON=python
# Linux Qt5.12.8 Python3.5
- os: linux
dist: xenial
language: python
python: 3.5
env: QT_SELECT=5.12.8 PYTHON=python
# Linux Qt5.13.2 Python2.7
- os: linux
dist: bionic
language: python
python: 2.7
env: QT_SELECT=5.13.2 PYTHON=python
# Linux Qt5.14.2 Python3.8
- os: linux
dist: bionic
language: python
python: 3.8
env: QT_SELECT=5.14.2 PYTHON=python
install:
- source ./ci/install_dependencies.sh # source required because of exports
- $PYTHON --version # check exact python version
- qmake --version # check exact Qt version
script:
- flake8 client/funq server/funq_server
- cd client && $PYTHON setup.py develop && cd ..
- cd server && $PYTHON setup.py develop && cd ..
- cd server/tests && qmake QMAKE_CXXFLAGS="$FUNQ_CXXFLAGS" && make -j4 && cd ../..
- cd tests-functionnal/funq-test-app && qmake QMAKE_CXXFLAGS="$FUNQ_CXXFLAGS" && make -j4 && cd ../..
- cd client && $PYTHON setup.py test; cd ..
- make -C server/tests/ check
- cd tests-functionnal && nosetests && cd ..