SeleniumBase/.travis.yml

35 lines
1.2 KiB
YAML

language: python
sudo: false
python:
- "2.7"
addons:
firefox: "46.0.1"
chrome: stable
install:
- "pip install --upgrade pip"
- "pip install -r server_requirements.txt"
- "python server_setup.py install"
- "sudo rm -f /etc/boto.cfg"
before_script:
- "flake8 seleniumbase/*.py"
- "flake8 seleniumbase/*/*.py"
- "flake8 seleniumbase/*/*/*.py"
- "flake8 seleniumbase/*/*/*/*.py"
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- "wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2;"
- "tar -xvf ./phantomjs-2.1.1-linux-x86_64.tar.bz2;"
- "export PATH=$PWD/phantomjs-2.1.1-linux-x86_64/bin:$PATH;"
- "phantomjs --version"
- "firefox --version"
- wget http://chromedriver.storage.googleapis.com/2.32/chromedriver_linux64.zip
- unzip chromedriver_linux64.zip
- sudo cp chromedriver /usr/local/bin/
- sudo chmod +x /usr/local/bin/chromedriver
script:
- "nosetests examples/my_first_test.py --with-selenium --browser=chrome -s"
- "pytest examples/my_first_test.py --with-selenium --browser=firefox -s"
- "pytest examples/my_first_test.py --with-selenium --browser=phantomjs"
notifications:
email: false