Skip to content

Instantly share code, notes, and snippets.

@OndraM
Created August 1, 2017 22:42
Show Gist options
  • Select an option

  • Save OndraM/822367ab26d6420af7d6e7fd0d0785df to your computer and use it in GitHub Desktop.

Select an option

Save OndraM/822367ab26d6420af7d6e7fd0d0785df to your computer and use it in GitHub Desktop.
Travis CI: downgrade to PhantomJS 1.9.8 on Trusty builds
# Ubuntu Trusty is being rolled as default on Travis CI builds starting June 2017
# See https://blog.travis-ci.com/2017-07-11-trusty-as-default-linux-is-coming
# Ubuntu Trusty comes with PhantomJS 2.0.0, which breakes many things especially for Selenium WebDriver.
# Because of that you may want to downgrade to PhantomJS 1.9.8 (the same version Ubuntu Preciese has).
dist: trusty
install:
- phantomjs --version # will print 2.0.0
- wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2
- tar -xvf ./phantomjs-1.9.8-linux-x86_64.tar.bz2
- export PATH=$PWD/phantomjs-1.9.8-linux-x86_64/bin:$PATH
script:
- phantomjs --version # will print 1.9.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment