Skip to content

Commit

Permalink
Merge pull request #1 from collective/acceptance_tests_on_travis
Browse files Browse the repository at this point in the history
Use Chrome for acceptance testing
  • Loading branch information
tomgross committed Sep 3, 2017
2 parents 8e0f9bd + 0d92b70 commit af7c51d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: python
sudo: false
addons:
firefox: "54.0"
chrome: stable
cache:
directories:
- eggs
Expand All @@ -10,17 +10,22 @@ python:
- 2.7.13
matrix:
fast_finish: true
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
- chmod u+x chromedriver
- mv chromedriver ~/bin/
install:
- pip install -r requirements.txt
- buildout -N buildout:download-cache=downloads code-analysis:return-status-codes=True annotate
- buildout -N buildout:download-cache=downloads code-analysis:return-status-codes=True
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- firefox -v
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
script:
- bin/code-analysis
- bin/coverage run bin/test
- bin/coverage run bin/test --all
after_success:
- bin/coveralls
notifications:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ Library Remote ${PLONE_URL}/RobotRemote
Test Setup Open test browser
Test Teardown Close all browsers

** Variables ***

${BROWSER} Chrome


*** Test Cases ***************************************************************

Expand Down

0 comments on commit af7c51d

Please sign in to comment.