Skip to content

Commit

Permalink
CI: Install geckodriver when running selenium tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aarranz committed Jun 25, 2018
1 parent 5ae0641 commit 0431818
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ matrix:
firefox: latest-esr
env: TEST_SUITE=js_unittests
- addons:
firefox: "45.0"
firefox: "60.0.2esr"
env: TEST_SUITE=selenium

install:
Expand Down
2 changes: 1 addition & 1 deletion src/ci_scripts/travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if [ "${TEST_SUITE}" == "js_unittests" ]; then
grunt ci
exit
elif [ "${TEST_SUITE}" == "selenium" ]; then
FLAGS="postgres django${DJANGO_VERSION} selenium"
FLAGS="sqlite3 django${DJANGO_VERSION} firefox-local selenium"
else
FLAGS="sqlite3 django${DJANGO_VERSION} unittest"
fi
Expand Down
2 changes: 1 addition & 1 deletion src/ci_scripts/travis_before_script.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
if [ "${TEST_SUITE}" == "js_unittests" ]; then
if [ "${TEST_SUITE}" == "js_unittests" ] || [ "${TEST_SUITE}" == "selenium" ]; then
export DISPLAY=:99.0
sh -e /etc/init.d/xvfb start
sleep 3 # give xvfb some time to start
Expand Down
7 changes: 7 additions & 0 deletions src/ci_scripts/travis_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,10 @@ if [ "${TEST_SUITE}" == "js_unittests" ]; then
else
pip install coveralls
fi

if [ "${TEST_SUITE}" == "selenium" ]; then
wget https://github.com/mozilla/geckodriver/releases/download/v0.21.0/geckodriver-v0.21.0-linux64.tar.gz
mkdir geckodriver
tar -xzf geckodriver-v0.21.0-linux64.tar.gz -C geckodriver
export PATH=$PATH:$PWD/geckodriver
fi

0 comments on commit 0431818

Please sign in to comment.