mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
50 lines
2.0 KiB
YAML
50 lines
2.0 KiB
YAML
general:
|
|
branches:
|
|
ignore:
|
|
- '3.6'
|
|
- '3.7'
|
|
- '3.8'
|
|
|
|
machine:
|
|
php:
|
|
version: 5.5.21
|
|
node:
|
|
version: 0.12.0
|
|
services:
|
|
- memcached
|
|
- redis
|
|
- mysql
|
|
|
|
dependencies:
|
|
cache_directories:
|
|
- elasticsearch-1.6.0 # relative to the build directory
|
|
- node_modules
|
|
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
|
|
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
|
|
- elasticsearch-1.6.0/bin/elasticsearch: {background: true}
|
|
|
|
|
|
database:
|
|
override:
|
|
- mysql -u ubuntu -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;';
|
|
post:
|
|
- "./bin/developer system:uninstall -v"
|
|
- "./bin/setup system:install -v --email=test@phraseanet.com --password=test --db-host=127.0.0.1 --db-user=ubuntu --db-template=fr --db-password= --databox=db_test --appbox=ab_test --server-name=http://127.0.0.1 -y;"
|
|
- "./bin/developer ini:setup-tests-dbs -v"
|
|
- "./bin/console searchengine:index:create -v"
|
|
- "./bin/developer phraseanet:regenerate-sqlite -v"
|
|
- "./bin/developer phraseanet:generate-js-fixtures -v"
|
|
|
|
test:
|
|
override:
|
|
- case $CIRCLE_NODE_INDEX in 0) php -d memory_limit=-1 bin/phpunit --exclude-group legacy ;; 1) ./node_modules/.bin/gulp test ;; 2) php -d memory_limit=-1 bin/phpunit --group legacy --exclude-group web ;; 3) php -d memory_limit=-1 bin/phpunit --group web ;; esac:
|
|
parallel: true
|