Fixed Travis-CI Yaml File

I created a Plone add-on from plone.bobtemplates some weeks ago and updated its functionality since then. The add-on comes with a .travis.yml file, created by bobtemplates.

But the .travis.yml file throw an error once it runs the tests in the test_example.robot file. I got the message:

AssertionError: Setup failed: WebDriverException: Message: 'geckodriver' executable needs to be in PATH.

After some searching as well as trial and error I found a solution to fix the issue. I made some edits to the ‚before_script‘ section of .travis.yml.

before_script:
- wget "https://github.com/mozilla/geckodriver/releases/download/v0.24.0/geckodriver-v0.24.0-linux64.tar.gz"
- tar xfz geckodriver-v0.24.0-linux64.tar.gz
- sudo mv geckodriver /usr/local/bin
- 'export DISPLAY=:99.0'
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- sleep 3 

I removed the entry: ‚firefox -v‘ and added the three lines at the beginning, thus the missing geckodriver got downloaded, extracted and put into the directory which fited.

With this edits of the .travis.yml file the robot example test runs. I got the same message, once I ran the robot test example on my computer. I could fix it by downloading the geckodriver and install it on the machine.