-
Notifications
You must be signed in to change notification settings - Fork 296
/
.travis.yml
39 lines (39 loc) · 1.39 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
language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
# - "nightly"
# TODO: add nightly back when this issue is fixed: https://github.com/cython/cython/issues/3266
addons:
apt:
sources:
- sourceline: 'ppa:openjdk-r/ppa'
- sourceline: 'deb http://www.apache.org/dist/cassandra/debian 311x main'
key_url: &apache-key https://www.apache.org/dist/cassandra/KEYS
- sourceline: 'deb-src http://www.apache.org/dist/cassandra/debian 311x main'
key_url: *apache-key
packages:
- cython3
- openjdk-8-jdk
- cassandra
services:
- cassandra
- mongodb
install:
# Disable Cassandra optional extensions (faster testing).
- export CASS_DRIVER_NO_EXTENSIONS=1
- pip install -e .[test]
- if [[ $TRAVIS_PYTHON_VERSION == '3.6' || $TRAVIS_PYTHON_VERSION == '3.7' || $TRAVIS_PYTHON_VERSION == '3.8' || $TRAVIS_PYTHON_VERSION == 'nightly' ]]; then pip install -e .[experimental_aio]; fi
before_script:
- bash travis/wait_for_cassandra.sh
script:
# Run non aio tests first because Python versions before 3.6 does not support aio.
- export DO_TEST_CASSANDRA=true
- nosetests --exclude-dir=test/aio
# Run aio tests.
- export DO_TEST_MONGO=true
- if [[ $TRAVIS_PYTHON_VERSION == '3.6' || $TRAVIS_PYTHON_VERSION == '3.7' || $TRAVIS_PYTHON_VERSION == '3.8' || $TRAVIS_PYTHON_VERSION == 'nightly' ]]; then nosetests test.aio; fi