Change CI flows

restrict builds to only specific branches
use composer without prefer-source
This commit is contained in:
Benoît Burnichon
2016-03-11 20:26:25 +01:00
parent d2dcc34815
commit e0aaf66e8f
2 changed files with 8 additions and 2 deletions

View File

@@ -7,6 +7,11 @@ php:
- 5.5
- 5.6
branches:
except:
- /^3\..*$/
- /^scrutinizer-.*$/
matrix:
fast_finish: true
@@ -30,7 +35,7 @@ before_install:
- echo "extension=zmq.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- yes | pecl install imagick
install:
- travis_retry composer install --optimize-autoloader --dev --prefer-source
- travis_retry composer install --no-progress --no-interaction --optimize-autoloader
- travis_retry npm install
before_script:
- mysql -e 'CREATE DATABASE update39_test;CREATE DATABASE ab_test;CREATE DATABASE db_test;SET @@global.sql_mode=STRICT_ALL_TABLES;SET @@global.max_allowed_packet=33554432;SET @@global.wait_timeout=999999;'

View File

@@ -19,13 +19,14 @@ dependencies:
cache_directories:
- elasticsearch-1.6.0 # relative to the build directory
- node_modules
- ~/.composer
pre:
- yes '' | pecl install imagick
- pecl install json
- yes '' | pecl install zmq-beta
- sed -i 's/^\(session.cache_limiter = \).*/\1""/' ~/.phpenv/versions/$(phpenv global)/etc/php.ini
override:
- composer install --prefer-source --no-interaction
- composer install --no-progress --no-interaction --optimize-autoloader
post:
- npm install
- if [[ ! -e elasticsearch-1.6.0 ]]; then wget --no-check-certificate https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.6.0.tar.gz && tar -xvf elasticsearch-1.6.0.tar.gz && elasticsearch-1.6.0/bin/plugin install elasticsearch/elasticsearch-analysis-icu/2.6.0; fi