Permalink
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (43 sloc) 1.08 KB
language: python
sudo: required
dist: trusty
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
before_install:
- CDVERSION=`curl http://chromedriver.storage.googleapis.com/LATEST_RELEASE`
- wget http://chromedriver.storage.googleapis.com/$CDVERSION/chromedriver_linux64.zip
- unzip chromedriver_linux64.zip
- sudo chmod u+x chromedriver
- sudo mv chromedriver /usr/bin/
install:
- pip install .
- pip install -r requirements.txt
- pip install -r requirements-dev.txt
matrix:
include:
- python: "2.7" # For PR and cron
env:
- BROWSER=chrome
- SELENIUM=2.53.6
- python: "3.3" # For PR and cron
env:
- BROWSER=chrome
- SELENIUM=2.53.6
- python: "2.7" # For PR and cron
env:
- BROWSER=chrome
- SELENIUM=3.0.2
- python: "3.3" # For cron only
env:
- BROWSER=firefox
- SELENIUM=2.53.6
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- pip install selenium==$SELENIUM
script:
- python test/run_tests.py $BROWSER