|
|
|
|
@ -1,4 +1,7 @@ |
|
|
|
|
dist: trusty |
|
|
|
|
sudo: required |
|
|
|
|
language: php |
|
|
|
|
|
|
|
|
|
addons: |
|
|
|
|
apt: |
|
|
|
|
packages: |
|
|
|
|
@ -9,9 +12,8 @@ addons: |
|
|
|
|
- fonts-liberation |
|
|
|
|
chrome: stable |
|
|
|
|
services: |
|
|
|
|
- mysql |
|
|
|
|
sudo: required |
|
|
|
|
dist: trusty |
|
|
|
|
- mysql |
|
|
|
|
|
|
|
|
|
cache: |
|
|
|
|
yarn: true |
|
|
|
|
directories: |
|
|
|
|
@ -54,7 +56,6 @@ before_install: |
|
|
|
|
- java -version |
|
|
|
|
- sudo apt-get install oracle-java8-installer |
|
|
|
|
- java -version |
|
|
|
|
#- 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 &" |
|
|
|
|
- sleep 10 |
|
|
|
|
@ -66,8 +67,8 @@ before_install: |
|
|
|
|
- mysqld --version |
|
|
|
|
- apache2 -v |
|
|
|
|
- php -v |
|
|
|
|
- php -ini | grep memory_limit |
|
|
|
|
- sudo cat /etc/hosts |
|
|
|
|
- phpenv config-add tests/travis/php-config.ini |
|
|
|
|
|
|
|
|
|
# Install Chash, a database, and then install Chamilo |
|
|
|
|
- git clone https://github.com/chamilo/chash |
|
|
|
|
@ -104,12 +105,19 @@ before_install: |
|
|
|
|
|
|
|
|
|
script: |
|
|
|
|
- whereis google-chrome-stable |
|
|
|
|
- google-chrome-stable --version |
|
|
|
|
- whereis chromedriver |
|
|
|
|
- chromedriver --version |
|
|
|
|
- cd tests/behat |
|
|
|
|
- pwd |
|
|
|
|
- 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-access.log |
|
|
|
|
|
|
|
|
|
after_failure: |
|
|
|
|
- sudo apache2ctl -M |
|
|
|
|
- sudo cat /var/log/apache2/error.log |
|
|
|
|
|
|
|
|
|
# configure notifications (email, IRC, campfire etc) |
|
|
|
|
notifications: |
|
|
|
|
slack: |
|
|
|
|
|