Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chamilo-lms/.travis.yml

140 lines
4.8 KiB

dist: bionic
language: php
php:
7.2
7.3
addons:
apt:
packages:
- apache2
- php
- php-mysql
- php-xml
- php-gd
- php-intl
- php-soap
- php-bcmath
- libapache2-mod-php
- postfix
- libappindicator1
services:
- mysql
- xvfb
cache:
yarn: true
directories:
- $HOME/.composer/cache/files
matrix:
fast_finish: false
include:
- php: 7.2
# - php: 7.3
# - php: 7.4
8 years ago
env:
global:
- VHOST_URL=localhost
8 years ago
before_install:
- mysqld --version
- apache2 -v
- php -m
- php -ini | grep memory_limit
# Fix travis error https://github.com/travis-ci/travis-ci/issues/8607
- sudo rm -vf /etc/apt/sources.list.d/*riak*
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
# Get Chrome driver
- wget https://chromedriver.storage.googleapis.com/2.35/chromedriver_linux64.zip && unzip chromedriver_linux64.zip
5 years ago
- sudo mv chromedriver /usr/bin
- sudo chmod +x /usr/bin/chromedriver
- chromedriver --version
# Get Selenium
- wget http://selenium-release.storage.googleapis.com/3.141/selenium-server-standalone-3.141.59.jar
# Check java
- java -version
- java -jar selenium-server-standalone-3.141.59.jar -log selenium.log > /dev/null &
# Use default config
#- sudo apt-get update
#- sudo apt-get install php php-mysql php-xml php-gd php-intl php-soap php-bcmath
- sudo a2enmod rewrite actions alias setenvif
# Apache & php-fpm configuration
- bash tests/travis/setup-php-fpm.sh
- bash tests/travis/setup-apache.sh
# Starting Apache
- sudo service apache2 restart
- sudo cat /etc/hosts
install:
- phpenv config-rm xdebug.ini || return 0
# - composer self-update --snapshot
- composer install --prefer-source --no-interaction
# Install bundle js/css
- php bin/console assets:install
# Permissions
- sudo chmod -R 777 var public
# Dump js routes
- php bin/console fos:js-routing:dump --format=json --target=public/js/fos_js_routes.json
# Install third party js/css libraries
- yarn install
- yarn run encore production
# Permissions
- sudo chown -R www-data:www-data $TRAVIS_BUILD_DIR
- sudo chown -R 775 $TRAVIS_BUILD_DIR
- sudo chmod +x /home/travis/build
- ls -la public/build
- curl http://localhost/check.php
script:
5 years ago
- cd tests/behat
# - travis_wait 45 ../../vendor/behat/behat/bin/behat -v
- ../../vendor/behat/behat/bin/behat features/actionInstall.feature -vvv
- cd ..
- cd ..
# Set to APP_ENV to test
- sed -i "s/APP_ENV='dev'/APP_ENV='test'/g" .env.local
- cd tests/behat
- ../../vendor/behat/behat/bin/behat features/adminFillUsers.feature -vvv
- ../../vendor/behat/behat/bin/behat features/adminSettings.feature -vvv
- ../../vendor/behat/behat/bin/behat features/career.feature -vvv
- ../../vendor/behat/behat/bin/behat features/class.feature -vvv
# - ../../vendor/behat/behat/bin/behat features/companyReports.feature -v
- ../../vendor/behat/behat/bin/behat features/course.feature -vvv
# - ../../vendor/behat/behat/bin/behat features/course_user_registration.feature -v
# - ../../vendor/behat/behat/bin/behat features/createUser.feature -v
# - ../../vendor/behat/behat/bin/behat features/createUserViaCSV.feature -v
# - ../../vendor/behat/behat/bin/behat features/extraFieldUser.feature -v
# - ../../vendor/behat/behat/bin/behat features/profile.feature -v
# - ../../vendor/behat/behat/bin/behat features/promotion.feature -v
# - ../../vendor/behat/behat/bin/behat features/registration.feature -v
# - ../../vendor/behat/behat/bin/behat features/sessionAccess.feature -v
# - ../../vendor/behat/behat/bin/behat features/sessionManagement.feature -v
# - ../../vendor/behat/behat/bin/behat features/socialGroup.feature -v
# - ../../vendor/behat/behat/bin/behat features/systemAnnouncements.feature -v
# - ../../vendor/behat/behat/bin/behat features/ticket.feature -v
# - ../../vendor/behat/behat/bin/behat features/toolAgenda.feature -v
# - ../../vendor/behat/behat/bin/behat features/toolAnnouncement.feature -v
# - ../../vendor/behat/behat/bin/behat features/toolDocument.feature -v
# - ../../vendor/behat/behat/bin/behat features/toolExercise.feature -v
# - ../../vendor/behat/behat/bin/behat features/toolForum.feature -v
# - ../../vendor/behat/behat/bin/behat features/toolGroup.feature -v
# - ../../vendor/behat/behat/bin/behat features/toolLink.feature -v
# - ../../vendor/behat/behat/bin/behat features/toolLp.feature -v
# - ../../vendor/behat/behat/bin/behat features/toolWork.feature -v
after_failure:
- sudo cat /var/log/apache2/error.log
# configure notifications (email, IRC, campfire etc)
notifications:
slack:
rooms:
secure: wlaaOwNt58ENjx2PEciISr4VBRWXp6YfI8TAZgvhDO1H0XpLByRYyktgm/+h6NQWvTEcPGBSFcsIA6K0N8FA52/fdDQFxbe0en+b4q7AGNLdjTRdszfZ4AbIdRngSBFKRmXC5IX0dEx/nGWYp5fRs26QPvgBadpj8M11BnL7qhg=