Skip to content
Snippets Groups Projects
Commit 9990df84 authored by Thomas N's avatar Thomas N Committed by Mickaël Andrieu
Browse files

Travis - Move APT commands in addons, add cache and use another version of MySQL (#5666)

* TE: Move apt data in travis addons

* TE: Add .npm folder in cache

* TE: Use MySQL 5.6
parent b80cfc14
No related branches found
No related tags found
No related merge requests found
...@@ -4,15 +4,27 @@ services: ...@@ -4,15 +4,27 @@ services:
- mysql - mysql
addons: addons:
apt_packages: apt:
- mysql-server sources:
- deb http://archive.ubuntu.com/ubuntu/ trusty multiverse
- deb http://archive.ubuntu.com/ubuntu/ trusty-updates multiverse
- deb http://archive.ubuntu.com/ubuntu/ trusty universe
- deb http://archive.ubuntu.com/ubuntu/ trusty-updates universe
packages:
- mysql-server-5.6
- mysql-client-5.6
- mysql-client-core-5.6
- apache2 - apache2
- postfix - postfix
- libapache2-mod-fastcgi
- libappindicator1
- fonts-liberation
sauce_connect: true sauce_connect: true
cache: cache:
directories: directories:
- $HOME/.composer/cache - $HOME/.composer/cache
- $HOME/.npm
sudo: required sudo: required
dist: trusty dist: trusty
...@@ -29,10 +41,6 @@ matrix: ...@@ -29,10 +41,6 @@ matrix:
before_install: before_install:
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" ]]; then sudo cp tests/php7-pool.conf ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.d/; fi - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" ]]; then sudo cp tests/php7-pool.conf ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.d/; fi
- sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ trusty multiverse" && sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ trusty-updates multiverse"
- sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ trusty universe" && sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ trusty-updates universe"
- sudo apt-get update -qq
- sudo apt-get install libapache2-mod-fastcgi
- phpenv config-rm xdebug.ini - phpenv config-rm xdebug.ini
- mysql -u root -e 'create database prestashop;' - mysql -u root -e 'create database prestashop;'
- cp ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf.default ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf - cp ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf.default ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf
...@@ -48,7 +56,6 @@ before_install: ...@@ -48,7 +56,6 @@ before_install:
- sudo a2ensite prestashop.conf - sudo a2ensite prestashop.conf
- sudo service apache2 restart - sudo service apache2 restart
- cp -Rf .composer/* ~/.composer/ & composer global install; - cp -Rf .composer/* ~/.composer/ & composer global install;
- sudo apt-get install -y libappindicator1 fonts-liberation
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb - wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- sudo dpkg -i google-chrome*.deb - sudo dpkg -i google-chrome*.deb
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment