forked from divio/aldryn-people
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (42 loc) · 1.35 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
language: python
sudo: false
matrix:
include:
# Django 1.11
- python: 2.7
env: DJANGO='dj111' CMS='cms34'
- python: 3.5
env: DJANGO='dj111' CMS='cms35'
- python: 3.5
env: DJANGO='dj111' CMS='cms35' FE='1'
- python: 3.5
env: DJANGO='dj111' CMS='cms36'
- python: 3.5
env: DJANGO='dj111' CMS='cms36' FE='1'
# Django 2.0
- python: 3.5
env: DJANGO='dj20' CMS='cms36'
- python: 3.5
env: DJANGO='dj20' CMS='cms36' FE='1'
# Django 2.1
- python: 3.5
env: DJANGO='dj21' CMS='cms36'
- python: 3.5
env: DJANGO='dj21' CMS='cms36' FE='1'
before_script:
- if [ "$FE" == 1 ]; then nvm install 6 && nvm use 6; fi
- if [ "$FE" == 1 ]; then npm config set spin false; fi
- if [ "$FE" == 1 ]; then npm install -g [email protected]; fi
- if [ "$FE" == 1 ]; then npm install -g codeclimate-test-reporter; fi
- if [ "$FE" == 1 ]; then npm install; fi
install:
- pip install -U tox coveralls
- "if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then export PY_VER=py27; fi"
- "if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then export PY_VER=py35; fi"
- "if [[ $FE == '1' ]]; then export FE_STR='-fe'; fi"
script:
- COMMAND='coverage run' tox -e"$PY_VER-$DJANGO-$CMS$FE_STR",pep8
after_success:
- coveralls
notifications:
webhooks: http://addons.us-iad-rs.aldryn.io/en/travis-endpoint/