forked from joshmaker/django-admin-locking
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
51 lines (41 loc) · 1.19 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
language: python
sudo: false
install:
- pip install flake8
- pip install tox tox-venv
- pip install coveralls
before_script:
- flake8 --max-line-length=100 --exclude=migrations locking
cache:
pip: true
directories:
- bin
addons:
chrome: stable
env:
global:
- PATH=$HOME/bin:$PATH
- CHROME_HEADLESS=1
before_script:
- mkdir -p ~/bin
- |
if [ ! -e ~/bin/chromedriver ]; then
export CHROMEDRIVER_VERSION=$(curl -q http://chromedriver.storage.googleapis.com/LATEST_RELEASE)
wget -N http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip -P ~/
unzip ~/chromedriver_linux64.zip -d ~/bin
rm ~/chromedriver_linux64.zip
chmod +x ~/bin/chromedriver
fi
matrix:
include:
- { python: 2.7, env: TOXENV=py27-django111 }
- { python: 3.7, env: TOXENV=py37-django20 }
- { python: 3.7, env: TOXENV=py37-django22 }
- { python: 2.7, env: TOXENV=py27-django111-grappelli }
- { python: 3.7, env: TOXENV=py37-django111-grappelli }
- { python: 3.7, env: TOXENV=py37-django20-grappelli }
- { python: 3.7, env: TOXENV=py37-django22-grappelli }
script:
- travis_retry tox
after_success:
coveralls