-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
47 lines (47 loc) · 1.57 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
sudo: false
language: python
python:
- 2.7
- 3.4
- 3.5
- 3.6
env:
global:
- DJANGO_SETTINGS_MODULE=testproject.settings
- PYTHONPATH=$HOME/testproject
- EVM_EMACS=emacs-25.3-travis
- PATH=$HOME/.evm/bin:$HOME/.cask/bin:$PATH
matrix:
- DJANGO_VERSION="Django>=1.8,<1.9" DRF_VERSION="djangorestframework>=3.6,<3.7"
- DJANGO_VERSION="Django>=1.9,<1.10" DRF_VERSION="djangorestframework>=3.6,<3.7"
- DJANGO_VERSION="Django>=1.10,<1.11" DRF_VERSION="djangorestframework"
- DJANGO_VERSION="Django>=1.11,<2.0" DRF_VERSION="djangorestframework"
- DJANGO_VERSION="Django>=2.0,<2.1" DRF_VERSION="djangorestframework"
matrix:
exclude:
- python: 2.7
env: DJANGO_VERSION="Django>=2.0,<2.1" DRF_VERSION="djangorestframework"
- python: 3.6
env: DJANGO_VERSION="Django>=1.8,<1.9" DRF_VERSION="djangorestframework>=3.6,<3.7"
- python: 3.6
env: DJANGO_VERSION="Django>=1.9,<1.10" DRF_VERSION="djangorestframework>=3.6,<3.7"
- python: 3.6
env: DJANGO_VERSION="Django>=1.10,<1.11" DRF_VERSION="djangorestframework"
cache:
directories:
- $HOME/.cache/pip/wheels
before_install:
- git clone https://github.com/rejeep/evm $HOME/.evm
- git clone https://github.com/cask/cask $HOME/.cask
- evm config path /tmp
install:
- evm install $EVM_EMACS --use
- cask install
- pip install -U pip wheel setuptools
- pip install $DJANGO_VERSION
- pip install $DRF_VERSION
before_script:
- mkdir $HOME/testproject
- DJANGO_SETTINGS_MODULE= django-admin startproject testproject $HOME/testproject
script:
- cask exec ert-runner