forked from datastax/python-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (32 loc) · 771 Bytes
/
.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
language: python
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6"
- "pypy-5.4.1"
sudo: false
env:
- CASS_DRIVER_NO_CYTHON=1
addons:
apt:
packages:
- build-essential
- python-dev
- pypy-dev
- libev4
- libev-dev
install:
- pip install tox-travis
script:
- |
changed_code_filenames=`git diff --name-only $TRAVIS_COMMIT_RANGE`
changed_driver_filenames=`echo "$changed_code_filenames" | grep '^cassandra'`
changelog_changed=`echo "$changed_code_filenames" | grep '^CHANGELOG.rst'`
if [ "$changed_driver_filenames" ] && [ "$changelog_changed" = "" ] ; then
echo "This PR includes code changes, but no CHANGELOG changes. Please include a CHANGELOG entry."
exit 1
fi
- tox
- tox -e patched_loops