Update travis

pull/3063/head
jmontoyaa 8 years ago
parent b229bf3436
commit 536cb6ead7
  1. 29
      .travis.yml

@ -8,13 +8,13 @@ addons:
- libapache2-mod-fastcgi - libapache2-mod-fastcgi
- libappindicator1 - libappindicator1
- fonts-liberation - fonts-liberation
chrome: stable
services: services:
- mysql - mysql
sudo: required sudo: required
dist: trusty dist: trusty
cache: cache:
directories: directories:
- $HOME/.composer/cache/files - $HOME/.composer/cache/files
@ -33,22 +33,29 @@ env:
- CHAMILO_VERSION=1.11.x - CHAMILO_VERSION=1.11.x
before_install: before_install:
# Fix travis error https://github.com/travis-ci/travis-ci/issues/8607
- sudo rm -vf /etc/apt/sources.list.d/*riak*
# Get Chrome # Get Chrome
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - #- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
- sudo apt-get update #- sudo apt-get update
- sudo apt-get install google-chrome-stable #- sudo apt-get install google-chrome-stable
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
# Get Chrome driver # Get Chrome driver
- wget https://chromedriver.storage.googleapis.com/2.32/chromedriver_linux64.zip && unzip chromedriver_linux64.zip && sudo mv chromedriver /usr/bin - wget https://chromedriver.storage.googleapis.com/2.32/chromedriver_linux64.zip && unzip chromedriver_linux64.zip
- sudo mv chromedriver /usr/bin
- sudo chmod +x /usr/bin/chromedriver
# Setup display for Selenium # Setup display for Selenium
- sh -e /etc/init.d/xvfb start - sh -e /etc/init.d/xvfb start
- export DISPLAY=:99.0 - export DISPLAY=:99.0
- sleep 3
# Get Selenium # Get Selenium
- wget http://selenium-release.storage.googleapis.com/3.6/selenium-server-standalone-3.6.0.jar - wget http://selenium-release.storage.googleapis.com/3.1/selenium-server-standalone-3.1.0.jar
# Check java # Check java
- java -version - java -version
- sudo apt-get install oracle-java8-installer - sudo apt-get install oracle-java8-installer
- java -version - java -version
- java -jar selenium-server-standalone-3.6.0.jar -log selenium.log > /dev/null & #- java -jar selenium-server-standalone-3.7.1.jar -log selenium.log > /dev/null &
- java -jar selenium-server-standalone-3.1.0.jar -log selenium.log > /dev/null &
- nohup bash -c "webdriver-manager start 2>&1 &" - nohup bash -c "webdriver-manager start 2>&1 &"
- sleep 10 - sleep 10
@ -91,10 +98,14 @@ before_install:
- curl $VHOST_URL - curl $VHOST_URL
script: script:
- whereis google-chrome-stable
- whereis chromedriver
- cd tests/behat - cd tests/behat
- pwd
- travis_wait 45 ../../vendor/behat/behat/bin/behat -v - travis_wait 45 ../../vendor/behat/behat/bin/behat -v
#- sudo cat /var/log/apache2/$VHOST_URL-error.log # - sudo cat /var/log/apache2/$VHOST_URL-error.log
#- sudo cat /var/log/apache2/$VHOST_URL-access.log # - sudo cat /var/log/apache2/$VHOST_URL-access.log
# configure notifications (email, IRC, campfire etc) # configure notifications (email, IRC, campfire etc)
notifications: notifications:

Loading…
Cancel
Save