Skip to content

Commit

Permalink
Use browser addons in Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanberg committed Sep 15, 2019
1 parent 2ae3191 commit 93e58b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
12 changes: 4 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,27 +61,23 @@ matrix:
- elixir: 1.9.1
otp_release: 22.0.7
env: WALLABY_DRIVER=selenium
# Run in bigger container so we don't run out of memory generating the plt
sudo: required
cache:
directories:
- _build
- deps

dist: trusty

addons:
chrome: stable
firefox: latest

before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- export CHROMEDRIVER_VERSION=`curl -s http://chromedriver.storage.googleapis.com/LATEST_RELEASE`
- curl -L -O "http://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip"
- unzip chromedriver_linux64.zip
- sudo chmod +x chromedriver
- sudo mv chromedriver /usr/local/bin
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test --yes
- sudo apt-get update
- sudo apt-get --only-upgrade install google-chrome-stable
- sudo apt-get install libstdc++6-4.7-dev
- MIX_ENV=test mix compile --warnings-as-errors
- if [ -z ${WALLABY_DRIVER} ]; then travis_wait mix dialyzer --plt; fi # only run dialyzer for the env without drivers
- bash $TRAVIS_BUILD_DIR/test/tools/start_webdriver.sh
Expand Down
7 changes: 0 additions & 7 deletions test/tools/start_webdriver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ if [ "$WALLABY_DRIVER" = "selenium" ]; then
curl -L https://github.com/mozilla/geckodriver/releases/download/v0.23.0/geckodriver-v0.23.0-linux64.tar.gz -o $HOME/geckodriver.tar.gz
tar xfz $HOME/geckodriver.tar.gz -C $HOME/bin

# Download latest firefox
export FIREFOX_SOURCE_URL='https://download.mozilla.org/?product=firefox-latest&lang=en-US&os=linux64'
wget -O /tmp/firefox-latest.tar.bz2 $FIREFOX_SOURCE_URL
mkdir -p $HOME/firefox-latest
tar xf /tmp/firefox-latest.tar.bz2 -C $HOME/firefox-latest
export PATH=$HOME/firefox-latest/firefox:$PATH

java -version

nohup java -jar $HOME/selenium.jar &
Expand Down

0 comments on commit 93e58b3

Please sign in to comment.