forked from django-cms/django-filer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
62 lines (48 loc) · 1.4 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
language: python
sudo: false
python: 3.5
install:
- pip install tox coveralls
branches:
only:
- master
- develop
# Explicit environments list here is a complete list of environments from tox.
# It is intentionally shortened.
env:
- TOX_ENV=flake8
# python 2.7
- TOX_ENV=py27-dj16-thumbs1x
- TOX_ENV=py27-dj16-thumbs2x
- TOX_ENV=py27-dj17-thumbs2x
- TOX_ENV=py27-dj18-thumbs2x
- TOX_ENV=py27-dj19-thumbs2x
# python 3.4
- TOX_ENV=py34-dj16-thumbs2x
- TOX_ENV=py34-dj17-thumbs2x
- TOX_ENV=py34-dj18-thumbs2x
- TOX_ENV=py34-dj19-thumbs2x
# python 3.5
- TOX_ENV=py35-dj18-thumbs2x
- TOX_ENV=py35-dj19-thumbs2x
# next Django release
- TOX_ENV=py27-djmaster-thumbs2x
- TOX_ENV=py34-djmaster-thumbs2x
- TOX_ENV=py35-djmaster-thumbs2x
- TOX_ENV=frontend FE=1
before_script:
- if [ "$FE" == 1 ]; then nvm install 0.12.7 && nvm use 0.12.7; fi
- if [ "$FE" == 1 ]; then npm config set spin false; fi
- if [ "$FE" == 1 ]; then npm install -g npm@2; fi
- if [ "$FE" == 1 ]; then npm install -g [email protected]; fi
- if [ "$FE" == 1 ]; then npm install; fi
script:
- tox -e $TOX_ENV
after_success:
- coveralls --config_file=.coveragerc
- mkdir -p shippable/codecoverage && cp coverage.xml shippable/codecoverage/coverage.xml
matrix:
allow_failures:
- env: TOX_ENV=py27-djmaster-thumbs2x
- env: TOX_ENV=py34-djmaster-thumbs2x
- env: TOX_ENV=py35-djmaster-thumbs2x