mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Test Travis Hipchat api
This commit is contained in:
94
.travis.yml
94
.travis.yml
@@ -1,66 +1,56 @@
|
|||||||
language: php
|
language: php
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- SETUP_MODE=update
|
- SETUP_MODE=update
|
||||||
- SETUP_MODE=install
|
- SETUP_MODE=install
|
||||||
|
|
||||||
php:
|
php:
|
||||||
- 5.5
|
- 5.5
|
||||||
- 5.6
|
- 5.6
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- mysql
|
- mysql
|
||||||
- memcached
|
- memcached
|
||||||
- redis
|
- redis
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- composer self-update --no-progress --no-interaction
|
- composer self-update --no-progress --no-interaction
|
||||||
- sudo apt-get purge elasticsearch
|
- sudo apt-get purge elasticsearch
|
||||||
- >
|
- |
|
||||||
wget --no-check-certificate https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.3.2.deb &&
|
wget --no-check-certificate https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.3.2.deb && sudo dpkg -i --force-confnew elasticsearch-1.3.2.deb
|
||||||
sudo dpkg -i --force-confnew elasticsearch-1.3.2.deb
|
- sudo /usr/share/elasticsearch/bin/plugin install elasticsearch/elasticsearch-analysis-icu/2.3.0
|
||||||
- sudo /usr/share/elasticsearch/bin/plugin install elasticsearch/elasticsearch-analysis-icu/2.3.0
|
- sudo service elasticsearch start
|
||||||
- sudo service elasticsearch start
|
- echo 'session.cache_limiter = ""' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
|
||||||
|
- echo 'extension="redis.so"' > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/redis.ini
|
||||||
- echo 'session.cache_limiter = ""' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
|
- echo 'extension="memcache.so"' > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/memcache.ini
|
||||||
- echo 'extension="redis.so"' > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/redis.ini
|
- echo 'extension="memcached.so"' > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/memcached.ini
|
||||||
- echo 'extension="memcache.so"' > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/memcache.ini
|
- echo "extension=zmq.so" > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/zmq.ini
|
||||||
- echo 'extension="memcached.so"' > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/memcached.ini
|
- yes | pecl install imagick
|
||||||
- echo "extension=zmq.so" > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/zmq.ini
|
|
||||||
- yes | pecl install imagick
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- travis_retry npm install
|
- travis_retry npm install
|
||||||
- travis_retry composer install --optimize-autoloader --dev --prefer-source
|
- travis_retry composer install --optimize-autoloader --dev --prefer-source
|
||||||
- travis_retry ./node_modules/.bin/grunt install-assets
|
- travis_retry ./node_modules/.bin/grunt install-assets
|
||||||
- ./bin/developer assets:compile-less
|
- "./bin/developer assets:compile-less"
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- >
|
- |
|
||||||
mysql -e '
|
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; '
|
||||||
CREATE DATABASE update39_test;
|
- "./bin/developer system:uninstall"
|
||||||
CREATE DATABASE ab_test;
|
- "./bin/setup system:install --email=test@phraseanet.com --password=test --db-host=127.0.0.1
|
||||||
CREATE DATABASE db_test;
|
--db-user=root --db-template=fr --db-password= --databox=db_test --appbox=ab_test
|
||||||
SET @@global.sql_mode= STRICT_ALL_TABLES;
|
--server-name=http://127.0.0.1 -y;"
|
||||||
SET @@global.max_allowed_packet= 33554432;
|
- |
|
||||||
SET @@global.wait_timeout= 999999;
|
|
||||||
'
|
|
||||||
- ./bin/developer system:uninstall
|
|
||||||
- ./bin/setup system:install --email=test@phraseanet.com --password=test --db-host=127.0.0.1 --db-user=root --db-template=fr --db-password= --databox=db_test --appbox=ab_test --server-name=http://127.0.0.1 -y;
|
|
||||||
- >
|
|
||||||
if [ "$SETUP_MODE" = "update" ]; then
|
if [ "$SETUP_MODE" = "update" ]; then
|
||||||
./bin/developer ini:reset --email=test@phraseanet.com --password=test --run-patches --no-setup-dbs;
|
./bin/developer ini:reset --email=test@phraseanet.com --password=test --run-patches --no-setup-dbs;
|
||||||
php resources/hudson/cleanupSubdefs.php;
|
php resources/hudson/cleanupSubdefs.php;
|
||||||
fi
|
fi
|
||||||
- mysql -e 'SELECT ab.version AS applibox_version, db.value AS databox_version FROM ab_test.sitepreff ab, db_test.pref db WHERE db.prop = "version"'
|
- mysql -e 'SELECT ab.version AS applibox_version, db.value AS databox_version FROM
|
||||||
- ./bin/developer ini:setup-tests-dbs
|
ab_test.sitepreff ab, db_test.pref db WHERE db.prop = "version"'
|
||||||
- ./bin/console searchengine:index:create
|
- "./bin/developer ini:setup-tests-dbs"
|
||||||
- ./bin/developer phraseanet:regenerate-sqlite
|
- "./bin/console searchengine:index:create"
|
||||||
- ./bin/developer phraseanet:generate-js-fixtures
|
- "./bin/developer phraseanet:regenerate-sqlite"
|
||||||
|
- "./bin/developer phraseanet:generate-js-fixtures"
|
||||||
script:
|
script:
|
||||||
- ./node_modules/.bin/grunt test
|
- "./node_modules/.bin/grunt test"
|
||||||
- ./bin/phpunit
|
- "./bin/phpunit"
|
||||||
|
notifications:
|
||||||
|
hipchat:
|
||||||
|
rooms:
|
||||||
|
secure: SGRF/sejAh54kp5p9C49TxJ0SE/WCZS/dM9L7Bjqfk2zxeB11s0k6Z0QaRJhwWtv7FETLVRF8/ZR6penJ3ibJj53ixzx2YzhuONIWYNlVGgnjnCsBST7eUzZesEbpob2p2oDchkG6OEG72nZJF3AQImeJvq0iWmdnhfJHFz0VYo=
|
||||||
|
Reference in New Issue
Block a user