Skip to content

Commit

Permalink
Adjust Travis env params.
Browse files Browse the repository at this point in the history
  • Loading branch information
sylus committed Jul 26, 2015
1 parent cb7d1f6 commit 6ef6131
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions scripts/travis-ci.sh
Expand Up @@ -100,10 +100,19 @@ system_install() {
# Disable sendmail
echo sendmail_path=`which true` >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

# Upping Mysql values
echo -e "[server]\nmax_allowed_packet=256M" | sudo tee -a /etc/mysql/conf.d/drupal.cnf
echo -e "[server]\wait_timeout=300" | sudo tee -a /etc/mysql/conf.d/drupal.cnf
sudo service mysql restart
# Enable APC
if [[ $TRAVIS_PHP_VERSION < "5.5" ]]; then
echo "extension=apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
echo "apc.shm_size=256M" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
fi

# Increase the MySQL connection timeout on the PHP end.
echo "mysql.connect_timeout=3000" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
echo "default_socket_timeout=3000" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

# Increase the MySQL server timetout and packet size.
mysql -e "SET GLOBAL wait_timeout = 36000;"
mysql -e "SET GLOBAL max_allowed_packet = 33554432;"
}

# before_tests
Expand Down

0 comments on commit 6ef6131

Please sign in to comment.