Skip to content

Commit baabf97

Browse files
committed
Merge branch 'master' of github.com:MongoEngine/mongoengine into v0.18.0_fix
2 parents 17fc9d1 + 97005ac commit baabf97

File tree

8 files changed

+314
-265
lines changed

8 files changed

+314
-265
lines changed

.install_mongodb_on_travis.sh

Lines changed: 0 additions & 24 deletions
This file was deleted.

.travis.yml

Lines changed: 31 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,52 +16,59 @@
1616
#
1717
# Reminder: Update README.rst if you change MongoDB versions we test.
1818

19-
language: python
2019

20+
language: python
2121
python:
2222
- 2.7
2323
- 3.5
2424
- 3.6
2525
- pypy
2626

27+
dist: xenial
28+
2729
env:
28-
- MONGODB=3.4 PYMONGO=3.x
30+
global:
31+
- MONGODB_3_4=3.4.17
32+
- MONGODB_3_6=3.6.12
33+
matrix:
34+
- MONGODB=${MONGODB_3_4} PYMONGO=3.x
2935

3036
matrix:
37+
3138
# Finish the build as soon as one job fails
3239
fast_finish: true
3340

3441
include:
3542
- python: 2.7
36-
env: MONGODB=3.4 PYMONGO=3.4.x
43+
env: MONGODB=${MONGODB_3_4} PYMONGO=3.4.x
3744
- python: 3.6
38-
env: MONGODB=3.6 PYMONGO=3.x
45+
env: MONGODB=${MONGODB_3_6} PYMONGO=3.x
46+
- python: 3.7
47+
env: MONGODB=${MONGODB_3_6} PYMONGO=3.x
3948

40-
before_install:
41-
- bash .install_mongodb_on_travis.sh
42-
- sleep 20 # https://docs.travis-ci.com/user/database-setup/#mongodb-does-not-immediately-accept-connections
43-
- mongo --eval 'db.version();'
4449

4550
install:
46-
- sudo apt-get install python-dev python3-dev libopenjpeg-dev zlib1g-dev libjpeg-turbo8-dev
47-
libtiff4-dev libjpeg8-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.5-dev tk8.5-dev
48-
python-tk
49-
- travis_retry pip install --upgrade pip
50-
- travis_retry pip install coveralls
51-
- travis_retry pip install flake8 flake8-import-order
52-
- travis_retry pip install "tox" # tox 3.11.0 has requirement virtualenv>=14.0.0
53-
- travis_retry pip install "virtualenv" # virtualenv>=14.0.0 has dropped Python 3.2 support (and pypy3 is based on py32)
54-
- travis_retry tox -e $(echo py$TRAVIS_PYTHON_VERSION-mg$PYMONGO | tr -d . | sed -e 's/pypypy/pypy/') -- -e test
55-
56-
# Cache dependencies installed via pip
57-
cache: pip
58-
59-
# Run flake8 for py27
51+
# Install Mongo
52+
- wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-${MONGODB}.tgz
53+
- tar xzf mongodb-linux-x86_64-${MONGODB}.tgz
54+
- ${PWD}/mongodb-linux-x86_64-${MONGODB}/bin/mongod --version
55+
# Install python dependencies
56+
- pip install --upgrade pip
57+
- pip install coveralls
58+
- pip install flake8 flake8-import-order
59+
- pip install tox # tox 3.11.0 has requirement virtualenv>=14.0.0
60+
- pip install virtualenv # virtualenv>=14.0.0 has dropped Python 3.2 support (and pypy3 is based on py32)
61+
# Install the tox venv
62+
- tox -e $(echo py$TRAVIS_PYTHON_VERSION-mg$PYMONGO | tr -d . | sed -e 's/pypypy/pypy/') -- -e test
63+
6064
before_script:
61-
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then flake8 .; else echo "flake8 only runs on py27"; fi
65+
- mkdir ${PWD}/mongodb-linux-x86_64-${MONGODB}/data
66+
- ${PWD}/mongodb-linux-x86_64-${MONGODB}/bin/mongod --dbpath ${PWD}/mongodb-linux-x86_64-${MONGODB}/data --logpath ${PWD}/mongodb-linux-x86_64-${MONGODB}/mongodb.log --fork
67+
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then flake8 .; else echo "flake8 only runs on py27"; fi # Run flake8 for py27
68+
- mongo --eval 'db.version();' # Make sure mongo is awake
6269

6370
script:
64-
- tox -e $(echo py$TRAVIS_PYTHON_VERSION-mg$PYMONGO | tr -d . | sed -e 's/pypypy/pypy/') -- --with-coverage
71+
- tox -e $(echo py$TRAVIS_PYTHON_VERSION-mg$PYMONGO | tr -d . | sed -e 's/pypypy/pypy/') -- --with-coverage
6572

6673
# For now only submit coveralls for Python v2.7. Python v3.x currently shows
6774
# 0% coverage. That's caused by 'use_2to3', which builds the py3-compatible

benchmark.py

Lines changed: 0 additions & 207 deletions
This file was deleted.

0 commit comments

Comments
 (0)