forked from apache/cassandra-python-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.yaml
More file actions
125 lines (107 loc) · 4.12 KB
/
build.yaml
File metadata and controls
125 lines (107 loc) · 4.12 KB
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
schedules:
commit_master:
schedule: per_commit
branches:
include: [master]
env_vars: |
EVENT_LOOP_MANAGER='libev'
matrix:
exclude:
- python: [3.4, 3.6]
commit_branches:
schedule: per_commit
branches:
include: [/python.*/]
env_vars: |
EVENT_LOOP_MANAGER='libev'
matrix:
exclude:
- python: [3.4, 3.6]
- cassandra: ['2.0', '2.1', '3.0']
weekly_libev:
schedule: weekly
branches:
include: [master]
env_vars: |
EVENT_LOOP_MANAGER='libev'
weekly_gevent:
schedule: weekly
branches:
include: [master]
env_vars: |
EVENT_LOOP_MANAGER='gevent'
matrix:
exclude:
- python: [3.4, 3.5, 3.6]
weekly_eventlet:
schedule: weekly
branches:
include: [master]
env_vars: |
EVENT_LOOP_MANAGER='eventlet'
weekly_async:
schedule: weekly
branches:
include: [master]
env_vars: |
EVENT_LOOP_MANAGER='async'
weekly_twister:
schedule: weekly
branches:
include: [master]
env_vars: |
EVENT_LOOP_MANAGER='twisted'
python:
- 2.7
- 3.4
- 3.5
- 3.6
os:
- ubuntu/trusty64
cassandra:
- '2.0'
- '2.1'
- '2.2'
- '3.0'
- '3.10'
env:
CYTHON:
- CYTHON
- NO_CYTHON
build:
- script: |
export JAVA_HOME=$CCM_JAVA_HOME
export PATH=$JAVA_HOME/bin:$PATH
export PYTHONPATH=""
pip install git+https://github.com/pcmanus/ccm.git
# Install dependencies
sudo apt-get install -y libev4 libev-dev
pip install -r test-requirements.txt
pip install nose-ignore-docstring
FORCE_CYTHON=False
if [[ $CYTHON == 'CYTHON' ]]; then
FORCE_CYTHON=True
pip install cython
pip install numpy
# Install the driver & compile C extensions
python setup.py build_ext --inplace
else
# Install the driver & compile C extensions with no cython
python setup.py build_ext --inplace --no-cython
fi
# Run the unit tests, this is not done in travis because
# it takes too much time for the whole matrix to build with cython
if [[ $CYTHON == 'CYTHON' ]]; then
EVENT_LOOP_MANAGER=$EVENT_LOOP_MANAGER VERIFY_CYTHON=1 nosetests -s -v --logging-format="[%(levelname)s] %(asctime)s %(thread)d: %(message)s" --with-ignore-docstrings --with-xunit --xunit-file=cqle_results.xml tests/unit/ || true
MONKEY_PATCH_LOOP=1 EVENT_LOOP_MANAGER=$EVENT_LOOP_MANAGER VERIFY_CYTHON=1 nosetests -s -v --logging-format="[%(levelname)s] %(asctime)s %(thread)d: %(message)s" --with-ignore-docstrings --with-xunit --xunit-file=cqle_results.xml tests/unit/io/test_eventletreactor.py || true
MONKEY_PATCH_LOOP=1 EVENT_LOOP_MANAGER=$EVENT_LOOP_MANAGER VERIFY_CYTHON=1 nosetests -s -v --logging-format="[%(levelname)s] %(asctime)s %(thread)d: %(message)s" --with-ignore-docstrings --with-xunit --xunit-file=cqle_results.xml tests/unit/io/test_geventreactor.py || true
fi
echo "Running with event loop manager: $EVENT_LOOP_MANAGER"
echo "==========RUNNING CQLENGINE TESTS=========="
EVENT_LOOP_MANAGER=$EVENT_LOOP_MANAGER CASSANDRA_VERSION=$CCM_CASSANDRA_VERSION VERIFY_CYTHON=$FORCE_CYTHON nosetests -s -v --logging-format="[%(levelname)s] %(asctime)s %(thread)d: %(message)s" --with-ignore-docstrings --with-xunit --xunit-file=cqle_results.xml tests/integration/cqlengine/ || true
echo "==========RUNNING INTEGRATION TESTS=========="
EVENT_LOOP_MANAGER=$EVENT_LOOP_MANAGER CASSANDRA_VERSION=$CCM_CASSANDRA_VERSION VERIFY_CYTHON=$FORCE_CYTHON nosetests -s -v --logging-format="[%(levelname)s] %(asctime)s %(thread)d: %(message)s" --with-ignore-docstrings --with-xunit --xunit-file=standard_results.xml tests/integration/standard/ || true
echo "==========RUNNING LONG INTEGRATION TESTS=========="
EVENT_LOOP_MANAGER=$EVENT_LOOP_MANAGER CASSANDRA_VERSION=$CCM_CASSANDRA_VERSION VERIFY_CYTHON=$FORCE_CYTHON nosetests -s -v --logging-format="[%(levelname)s] %(asctime)s %(thread)d: %(message)s" --with-ignore-docstrings --with-xunit --xunit-file=long_results.xml tests/integration/long/ || true
- xunit:
- "*_results.xml"