forked from theatlantic/django-nested-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (46 loc) · 1.74 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
language: python
matrix:
include:
- { python: 2.7, env: TOXENV=py27-dj18 }
- { python: 3.6, env: TOXENV=py36-dj18 }
- { python: 2.7, env: TOXENV=py27-dj18-grp }
- { python: 2.7, env: TOXENV=py27-dj18-suit }
- { python: 2.7, env: TOXENV=py27-dj19 }
- { python: 3.6, env: TOXENV=py36-dj19 }
- { python: 2.7, env: TOXENV=py27-dj19-grp }
- { python: 2.7, env: TOXENV=py27-dj110 }
- { python: 2.7, env: TOXENV=py27-dj110-grp }
- { python: 3.6, env: TOXENV=py36-dj110 }
- { python: 2.7, env: TOXENV=py27-dj111 }
- { python: 3.6, env: TOXENV=py36-dj111 }
- python: 3.6
env: TOXENV=py36-dj20 DATABASE_URL='postgres://[email protected]/nested_admin_test'
allow_failures:
- env: TOXENV=py36-dj20 DATABASE_URL='postgres://[email protected]/nested_admin_test'
cache:
pip: true
# directories:
# - node_modules
addons:
chrome: stable
env:
global:
- PATH=$HOME/bin:$PATH
# - BLINKDIFF_BIN=$TRAVIS_BUILD_DIR/node_modules/.bin/blink-diff
before_script:
- if [ "$DATABASE_URL" == "postgres://[email protected]/nested_admin_test" ]; then psql -c "DROP DATABASE IF EXISTS nested_admin_test;" -U postgres; fi
- if [ "$DATABASE_URL" == "postgres://[email protected]/nested_admin_test" ]; then psql -c "create database nested_admin_test;" -U postgres; fi
- mkdir -p ~/bin
- wget -N http://chromedriver.storage.googleapis.com/2.33/chromedriver_linux64.zip -P ~/
- unzip ~/chromedriver_linux64.zip -d ~/bin
- rm ~/chromedriver_linux64.zip
- chmod +x ~/bin/chromedriver
# before_install:
# - nvm install node
# - nvm use node
# - npm install blink-diff
install:
- pip install tox
script:
- travis_retry travis_retry travis_retry tox -- --selenium=chrome-headless --failfast
sudo: false