Minor - travis tests

1.10.x
Yannick Warnier 10 years ago
parent 5f2f006fae
commit eebc1a4006
  1. 7
      .travis.yml
  2. 4
      tests/travis-apache

@ -39,11 +39,10 @@ before_script:
- mysql -u root -e 'grant all privileges on chamilo.* to chamilo@localhost identified by "chamilo"'
- mysql -u root -e 'flush privileges'
# install Chamilo with Chash - see reference https://github.com/sonnym/travis-ci-drupal-module-example/blob/master/.travis.yml
- sudo chash chash:chamilo_install --no-interaction --sitename="Chamilo" --site_url="http://localhost/" --institution="Chamilo" --institution_url="https://chamilo.org" --encrypt_method="sha1" --firstname="John" --lastname="Doe" --language="english" --driver="pdo_mysql" --host="localhost" --port="3306" --dbname="chamilo" --dbuser="chamilo" --dbpassword="chamilo" --permissions_for_new_directories="0777" --permissions_for_new_files="0666" --username="admin" --password="admin" --email="admin@example.com" --phone="555-5555" 1.10.x `pwd`
- sudo chash chash:chamilo_install --no-interaction --sitename="Chamilo" --site_url="http://localhost/" --institution="Chamilo" --institution_url="https://chamilo.org" --encrypt_method="sha1" --firstname="John" --lastname="Doe" --language="english" --driver="pdo_mysql" --host="localhost" --port="3306" --dbname="chamilo" --dbuser="chamilo" --dbpassword="chamilo" --permissions_for_new_directories="0777" --permissions_for_new_files="0666" --username="admin" --password="admin" --email="admin@example.com" --phone="555-5555" 1.10.x /home/travis/build/chamilo/chamilo-lms
script:
# - phpunit -c tests/phpunit
- pwd
- ls
- cat main/inc/conf/configuration.php
# pwd shows /home/travis/build/chamilo/chamilo-lms
- ls -la main/inc/conf/
- cd tests && ../vendor/behat/behat/bin/behat -v

@ -1,9 +1,9 @@
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName localhost
DocumentRoot %TRAVIS_BUILD_DIR%/chamilo-lms
DocumentRoot /home/travis/build/chamilo/chamilo-lms
<Directory "%TRAVIS_BUILD_DIR%/chamilo-lms">
<Directory "/home/travis/build/chamilo/chamilo-lms">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny

Loading…
Cancel
Save