forked from pythonindia/junction
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (52 loc) · 1.33 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
# System information
os: linux
addons:
postgresql: "12.2"
services:
- redis
language: python
python: 3.5
cache: pip
# Use a two-stage approach, to minimize CI time on failures.
stages:
- primary
- secondary
env: DJANGO_SETTINGS_MODULE="settings.test_settings"
jobs:
include:
# Basic Checks
- stage: primary
env: NOXSESSION=lint-3.5
- env: NOXSESSION=test-2.7
- env: NOXSESSION=test-3.5
- env: NOXSESSION=docs
- stage: secondary
env: NOXSESSION=test-3.6
python: 3.6
- env: NOXSESSION=test-3.7
python: 3.7
install:
# Enable Python 3.6.x, when python: 3.5 (because black is Py3.6+)
- |
if [ "${TRAVIS_PYTHON_VERSION}" == "3.5" ]; then
pyenv shell system:3.6.7
fi
# Get the latest pip
- python -m pip install --upgrade pip
# Reinstall pip, using the latest pip
- python -m pip install --force-reinstall pip
# Install the CI dependencies
- python -m pip install celery==3.1.20 # pin from requirements.txt
- python -m pip install Django==1.9 # pin from requirements.txt
- python -m pip install nox
- python -m pip install coveralls
before_script:
- celery -A junction worker -l info --detach
script:
- nox
after_success:
- coveralls
notifications:
email:
on_success: change # [always|never|change]
on_failure: always # [always|never|change]