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
50 lines (42 loc) · 1.35 KB
/
build.yaml
File metadata and controls
50 lines (42 loc) · 1.35 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
python:
- 2.7
- 3.4
os:
- ubuntu/trusty64
- windows/2012R2
env:
CASSANDRA_VERSION:
- 1.2.19
- 2.0.16
- 2.1.8
- 2.2.0
- 3.0.0-alpha1
JDK:
- java-7-oracle
- java-8-oracle
EVENT_LOOP_MANAGER:
- libev
CYTHON:
- CYTHON
- NO_CYTHON
build:
- script: |
export JAVA_HOME=/usr/lib/jvm/$JDK
export PATH=$JAVA_HOME/bin:$PATH
# Install dependencies
if [[ $EVENT_LOOP_MANAGER == 'libev' ]]; then
sudo apt-get install -y libev4 libev-dev
fi
if [[ $CYTHON == 'CYTHON' ]]; then
pip install cython
pip install numpy
fi
pip install -r test-requirements.txt
# Install the driver & compile C extensions
python setup.py build_ext --inplace
echo "==========RUNNING CQLENGINE TESTS=========="
CASSANDRA_VERSION=$CASSANDRA_VERSION nosetests -s -v --with-xunit --xunit-file=cqle_results.xml tests/integration/cqlengine/
echo "==========RUNNING INTEGRATION TESTS=========="
CASSANDRA_VERSION=$CASSANDRA_VERSION nosetests -s -v --with-xunit --xunit-file=standard_results.xml tests/integration/standard/
echo "==========RUNNING LONG INTEGRATION TESTS=========="
CASSANDRA_VERSION=$CASSANDRA_VERSION nosetests -s -v --with-xunit --xunit-file=long_results.xml tests/integration/long/