Skip to content

Commit

Permalink
Put geckodriver in Travis cache
Browse files Browse the repository at this point in the history
This tries to avoid the error:

    ERROR 429: too many requests

See: https://travis-ci.org/github/collective/collective.cover/jobs/735735429#L1683
  • Loading branch information
idgserpro committed Oct 15, 2020
1 parent be307c5 commit d9665d2
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .travis.yml
Expand Up @@ -4,9 +4,10 @@ language: python
python: 2.7
cache:
directories:
- $HOME/.pylint.d
- eggs
- parts/node
- $HOME/.pylint.d
- eggs
- parts/node
- geckodriver
addons:
artifacts:
s3_region: sa-east-1
Expand All @@ -31,9 +32,13 @@ install:
- bin/buildout $VERSIONS annotate
- bin/buildout $VERSIONS
before_script:
- GECKODRIVER_VERSION=0.27.0
- wget https://github.com/mozilla/geckodriver/releases/download/v$GECKODRIVER_VERSION/geckodriver-v$GECKODRIVER_VERSION-linux64.tar.gz
- sudo tar -xzf geckodriver-v$GECKODRIVER_VERSION-linux64.tar.gz -C /usr/bin
- >
if [ ! -f geckodriver/geckodriver ]; then
GECKODRIVER_VERSION=0.27.0
wget https://github.com/mozilla/geckodriver/releases/download/v$GECKODRIVER_VERSION/geckodriver-v$GECKODRIVER_VERSION-linux64.tar.gz
tar -xzf geckodriver-v$GECKODRIVER_VERSION-linux64.tar.gz -C geckodriver
fi;
- export PATH=$PATH:$PWD/geckodriver
- export ROBOT_SELENIUM2LIBRARY_RUN_ON_FAILURE="Capture Page Screenshot"
- firefox -v
script:
Expand Down

0 comments on commit d9665d2

Please sign in to comment.