2017-10-07 07:36:47 +08:00
|
|
|
language: python
|
2017-10-08 12:17:13 +08:00
|
|
|
sudo: required
|
2015-12-06 09:27:34 +08:00
|
|
|
python:
|
|
|
|
- "2.7"
|
2017-10-08 08:28:21 +08:00
|
|
|
addons:
|
|
|
|
firefox: "46.0.1"
|
2017-10-08 12:06:56 +08:00
|
|
|
chrome: stable
|
2015-12-06 09:34:59 +08:00
|
|
|
install:
|
|
|
|
- "pip install --upgrade pip"
|
2017-10-07 07:32:25 +08:00
|
|
|
- "pip install -r server_requirements.txt"
|
|
|
|
- "python server_setup.py install"
|
2015-12-06 09:27:34 +08:00
|
|
|
before_script:
|
2017-03-10 16:24:04 +08:00
|
|
|
- "flake8 seleniumbase/*.py"
|
2015-12-06 15:49:01 +08:00
|
|
|
- "flake8 seleniumbase/*/*.py"
|
2017-03-10 16:24:04 +08:00
|
|
|
- "flake8 seleniumbase/*/*/*.py"
|
|
|
|
- "flake8 seleniumbase/*/*/*/*.py"
|
2015-12-06 09:27:34 +08:00
|
|
|
- "export DISPLAY=:99.0"
|
|
|
|
- "sh -e /etc/init.d/xvfb start"
|
2017-10-08 08:28:21 +08:00
|
|
|
- "export PATH=$PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH"
|
|
|
|
- "if [ $(phantomjs --version) != '2.1.1' ]; then rm -rf $PWD/travis_phantomjs; mkdir -p $PWD/travis_phantomjs; fi"
|
|
|
|
- "if [ $(phantomjs --version) != '2.1.1' ]; then wget https://assets.membergetmember.co/software/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2; fi"
|
|
|
|
- "if [ $(phantomjs --version) != '2.1.1' ]; then tar -xvf $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis_phantomjs; fi"
|
2017-10-08 12:17:13 +08:00
|
|
|
- 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
|
2016-06-12 00:48:02 +08:00
|
|
|
script:
|
2017-10-08 12:06:56 +08:00
|
|
|
- "nosetests examples/my_first_test.py --with-selenium --browser=chrome -s"
|
2017-10-08 08:28:21 +08:00
|
|
|
- "firefox --version"
|
2017-10-07 07:05:14 +08:00
|
|
|
- "pytest examples/my_first_test.py --with-selenium --browser=firefox -s"
|
2017-10-08 08:28:21 +08:00
|
|
|
- "phantomjs --version"
|
|
|
|
- "pytest examples/my_first_test.py --with-selenium --browser=phantomjs"
|
2015-12-06 14:58:59 +08:00
|
|
|
notifications:
|
|
|
|
email: false
|