-
Notifications
You must be signed in to change notification settings - Fork 102
/
.travis.yml
61 lines (47 loc) · 1.42 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
language: python
python:
- "3.5"
- "3.8"
- "3.11"
- "pypy3"
env:
- TOX_ENV=tw217
- TOX_ENV=tw2210
- TOX_ENV=tw2310
- TOX_ENV=twlatest
- TOX_ENV=twtrunk
- TOX_ENV=pymongo_313
- TOX_ENV=pymongo_470
- TOX_ENV=pymongo_latest
matrix:
fast_finish: true
allow_failures:
- env: TOX_ENV=pyflakes
- python: pypy3
env: TOX_ENV=twtrunk
include:
- python: 3.8
env: TOX_ENV=pyflakes
- python: 3.8
env: TOX_ENV=manifest
before_install:
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
- echo 'deb http://repo.mongodb.org/apt/ubuntu '$(lsb_release -sc)'/mongodb-org/3.0 multiverse' | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
- sudo apt-get update
- sudo apt-get install -y --allow-unauthenticated mongodb-org-server
# PyCrypto detects libgmp-dev and build its fastmath native extension which is incompatible with pypy. So removing libgmp-dev for pypy builds.
- if [[ "$TRAVIS_PYTHON_VERSION" == pypy* ]]; then sudo apt-get remove -y --auto-remove libgmp-dev; fi
- mongod --version
- mkdir data; mongod --dbpath data --nounixsocket --fork --logpath mongod.log
install:
- pip install tox coveralls
before_script:
- until nc -z localhost 27017; do echo Waiting for MongoDB; sleep 1; done
script:
- tox -e $TOX_ENV
after_success:
- coveralls
after_script:
- killall monogd
notifications:
email: false