mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Change CI flows
restrict builds to only specific branches use composer without prefer-source
This commit is contained in:
@@ -7,6 +7,11 @@ php:
|
|||||||
- 5.5
|
- 5.5
|
||||||
- 5.6
|
- 5.6
|
||||||
|
|
||||||
|
branches:
|
||||||
|
except:
|
||||||
|
- /^3\..*$/
|
||||||
|
- /^scrutinizer-.*$/
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
|
|
||||||
@@ -30,7 +35,7 @@ before_install:
|
|||||||
- echo "extension=zmq.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
|
- echo "extension=zmq.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
|
||||||
- yes | pecl install imagick
|
- yes | pecl install imagick
|
||||||
install:
|
install:
|
||||||
- travis_retry composer install --optimize-autoloader --dev --prefer-source
|
- travis_retry composer install --no-progress --no-interaction --optimize-autoloader
|
||||||
- travis_retry npm install
|
- travis_retry npm install
|
||||||
before_script:
|
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;'
|
- 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;'
|
||||||
|
@@ -19,13 +19,14 @@ dependencies:
|
|||||||
cache_directories:
|
cache_directories:
|
||||||
- elasticsearch-1.6.0 # relative to the build directory
|
- elasticsearch-1.6.0 # relative to the build directory
|
||||||
- node_modules
|
- node_modules
|
||||||
|
- ~/.composer
|
||||||
pre:
|
pre:
|
||||||
- yes '' | pecl install imagick
|
- yes '' | pecl install imagick
|
||||||
- pecl install json
|
- pecl install json
|
||||||
- yes '' | pecl install zmq-beta
|
- yes '' | pecl install zmq-beta
|
||||||
- sed -i 's/^\(session.cache_limiter = \).*/\1""/' ~/.phpenv/versions/$(phpenv global)/etc/php.ini
|
- sed -i 's/^\(session.cache_limiter = \).*/\1""/' ~/.phpenv/versions/$(phpenv global)/etc/php.ini
|
||||||
override:
|
override:
|
||||||
- composer install --prefer-source --no-interaction
|
- composer install --no-progress --no-interaction --optimize-autoloader
|
||||||
post:
|
post:
|
||||||
- npm install
|
- 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
|
- 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
|
||||||
|
Reference in New Issue
Block a user