Remove duplicate localhost hostname (fixed Selenium bug)

This commit is contained in:
Robbie Averill 2018-06-19 23:03:48 +12:00
parent 58bd6c2248
commit 4de82ae828

View File

@ -26,6 +26,9 @@ matrix:
env: DB=MYSQL BEHAT_TEST=1 CMS_TEST=1
before_script:
# Fix bug in Selenium with duplicate localhost definitions: https://github.com/travis-ci/travis-ci/issues/3054
- "sed 's/localhost localhost/localhost/' /etc/hosts > /tmp/etchoststmp && cat /tmp/etchoststmp | sudo tee /etc/hosts"
- export CORE_RELEASE=$TRAVIS_BRANCH
- if ! [ $(phpenv version-name) = "5.3" ]; then printf "\n" | travis_retry pecl install imagick; fi
- if [ $(phpenv version-name) = "5.3" ]; then printf "\n" | travis_retry pecl install imagick-3.3.0; fi