Remove travis.yml + travis config files

pull/3432/head
Julio Montoya 5 years ago
parent 5fb8f8851e
commit eeee683002
  1. 145
      .travis.yml
  2. 5
      tests/travis/php-config.ini
  3. 15
      tests/travis/setup-apache.sh
  4. 24
      tests/travis/setup-php-fpm.sh
  5. 14
      tests/travis/travis-apache

@ -1,145 +0,0 @@
dist: bionic
language: php
php:
- 7.4
- 8.0
addons:
apt:
packages:
- apache2
- php
- php-apcu
- 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.4
env:
global:
- VHOST_URL=localhost
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
- 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 --optimize-autoloader
# 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 chmod -R 777 var public
- sudo chmod +x /home/travis/build
- ls -la public/build
- curl http://localhost/check.php
script:
- 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='prod'/g" .env.local
- sed -i "s/APP_DEBUG='1'/APP_DEBUG='0'/g" .env.local
# Warm up
- sudo chmod -R 777 var public
- php bin/console cache:clear
- sudo chmod -R 777 var public
- cd tests/behat
# - ../../vendor/behat/behat/bin/behat features/accessCompanyReports.feature -v
- ../../vendor/behat/behat/bin/behat features/actionUserLogin.feature -vv
- ../../vendor/behat/behat/bin/behat features/adminFillUsers.feature -vv
- ../../vendor/behat/behat/bin/behat features/adminSettings.feature -vv
- ../../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 -vv
- ../../vendor/behat/behat/bin/behat features/course.feature -vvv
- ../../vendor/behat/behat/bin/behat features/course_user_registration.feature -vv
- ../../vendor/behat/behat/bin/behat features/createUser.feature -vvv
- ../../vendor/behat/behat/bin/behat features/createUserViaCSV.feature -vv
- ../../vendor/behat/behat/bin/behat features/extraFieldUser.feature -vv
- ../../vendor/behat/behat/bin/behat features/profile.feature -vv
- ../../vendor/behat/behat/bin/behat features/promotion.feature -vv
# - ../../vendor/behat/behat/bin/behat features/registration.feature -v
- ../../vendor/behat/behat/bin/behat features/sessionAccess.feature -vv
- ../../vendor/behat/behat/bin/behat features/sessionManagement.feature -vv
- ../../vendor/behat/behat/bin/behat features/socialGroup.feature -vv
- ../../vendor/behat/behat/bin/behat features/systemAnnouncements.feature -vv
# - ../../vendor/behat/behat/bin/behat features/ticket.feature -v
- ../../vendor/behat/behat/bin/behat features/toolAgenda.feature -vv
- ../../vendor/behat/behat/bin/behat features/toolAnnouncement.feature -vv
# - ../../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 -vv
- ../../vendor/behat/behat/bin/behat features/toolLink.feature -vv
- ../../vendor/behat/behat/bin/behat features/toolLp.feature -vvv
- ../../vendor/behat/behat/bin/behat features/toolWork.feature -vvv
after_failure:
- sudo cat /var/log/apache2/error.log
# configure notifications (email, IRC, campfire etc)
notifications:
slack:
rooms:
secure: wlaaOwNt58ENjx2PEciISr4VBRWXp6YfI8TAZgvhDO1H0XpLByRYyktgm/+h6NQWvTEcPGBSFcsIA6K0N8FA52/fdDQFxbe0en+b4q7AGNLdjTRdszfZ4AbIdRngSBFKRmXC5IX0dEx/nGWYp5fRs26QPvgBadpj8M11BnL7qhg=

@ -1,5 +0,0 @@
; this file serves to configure the PHP environment on travis-ci.com
; see http://docs.travis-ci.com/user/languages/php/#Custom-PHP-configuration
date.timezone = Europe/Paris
phar.readonly = Off
memory_limit = 4096M

@ -1,15 +0,0 @@
#!/bin/bash
echo "* Start setup-apache.sh ...";
sudo a2enmod rewrite actions alias
# Use default config
sudo cp -f tests/travis/travis-apache /etc/apache2/sites-available/000-default.conf
sudo sed -e "s?%TRAVIS_BUILD_DIR%?$(pwd)?g" --in-place /etc/apache2/sites-available/000-default.conf
sudo chmod 777 -R $HOME
cat /etc/apache2/sites-available/000-default.conf
# Starting Apache
sudo service apache2 restart

@ -1,24 +0,0 @@
#!/bin/bash
echo "* Preparing PHP-FPM ...";
phpenv config-rm xdebug.ini
# Using default configs
#cp ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf.default ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf
#if [ -f ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.d/www.conf.default ]; then
# cp -n ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.d/www.conf.default ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.d/www.conf;
#fi
# Logging
sudo touch /var/log/php-fpm.log && sudo chmod 777 /var/log/php-fpm.log
sudo sed -e "s?;error_log = log/php-fpm.log?error_log = /var/log/php-fpm.log?g" --in-place ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf
# Additionnal configuration
echo "cgi.fix_pathinfo = 1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
echo "always_populate_raw_post_data = -1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
echo "error_log = /var/log/php-fpm.log" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
echo "memory_limit = 4G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
# Starting PHP FPM
#~/.phpenv/versions/$(phpenv version-name)/sbin/php-fpm

@ -1,14 +0,0 @@
<VirtualHost *:80>
DocumentRoot %TRAVIS_BUILD_DIR%/public
ServerName localhost
<Directory "%TRAVIS_BUILD_DIR%/public">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
<Directory /usr/lib/cgi-bin>
Require all granted
</Directory>
</VirtualHost>
Loading…
Cancel
Save