-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
63 lines (51 loc) · 1.61 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
62
# Travis build script for django-mongolog
#
# Support for python 3.2 and 3.3 discontinued because django officially dropped support in 1.8
# https://docs.djangoproject.com/en/1.9/releases/1.9/#django-1-9-release-notes
language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
# - "3.7-dev" Started failing..
env:
matrix:
# Older django version that supports python 2.7
# Django 1.11.18 was last version to support python 2.7
- MONGODB=2.6.12 DJANGO="==1.11.18"
- MONGODB=3.6.6 DJANGO="==1.11.18"
- MONGODB=4.1.1 DJANGO="==1.11.18"
# These will all use the latest version of django.
- MONGODB=2.6.12
- MONGODB=3.0.15
- MONGODB=3.2.20
- MONGODB=3.4.16
- MONGODB=3.6.6
- MONGODB=4.0.0
- MONGODB=4.1.1
matrix:
fast_finish: true
install:
- pip install -r requirements.txt
- pip install coveralls
- pip install pymongo$PYMONGO
- pip freeze
# Install django version from matrix
- pip install django$DJANGO
- wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-${MONGODB}.tgz
- tar xzf mongodb-linux-x86_64-${MONGODB}.tgz
- ${PWD}/mongodb-linux-x86_64-${MONGODB}/bin/mongod --version
- pip install Pillow
- python setup.py install
before_script:
- mkdir ${PWD}/mongodb-linux-x86_64-${MONGODB}/data
- ${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
# command to run tests
script: coverage run --source=mongolog/ manage.py test
after_script:
- pkill mongod
after_success:
- coverage report
- coveralls
- pip freeze