Skip to content

Commit

Permalink
Merge pull request #103 from ktp420/phantomjs
Browse files Browse the repository at this point in the history
Add test for PhantomJS browser as part of the CI
  • Loading branch information
mdmintz authored May 18, 2017
2 parents 35791a9 + 4d2390f commit c66aadb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@ before_script:
- "flake8 seleniumbase/*/*/*/*.py"
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- "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"
- "phantomjs --version"
script:
- "firefox --version"
- "nosetests examples/my_first_test.py --with-selenium --browser=firefox -s"
- "pytest examples/my_first_test.py --with-selenium --browser=firefox -s"
- "pytest examples/my_first_test.py --with-selenium --browser=phantomjs"
env:
matrix:
- BROWSER=firefox
Expand Down

0 comments on commit c66aadb

Please sign in to comment.