Change travis configuration

This commit is contained in:
Benoît Burnichon
2015-06-12 12:25:04 +02:00
parent 43d93eef36
commit 627475799f
3 changed files with 48 additions and 41 deletions

View File

@@ -1,7 +1,9 @@
language: php language: php
env: env:
- SETUP_MODE=update - SETUP_MODE=update TEST_SUITE=1
- SETUP_MODE=install - SETUP_MODE=update TEST_SUITE=2
- SETUP_MODE=install TEST_SUITE=1
- SETUP_MODE=install TEST_SUITE=2
php: php:
- 5.5 - 5.5
- 5.6 - 5.6
@@ -44,7 +46,12 @@ before_script:
- "./bin/developer phraseanet:generate-js-fixtures" - "./bin/developer phraseanet:generate-js-fixtures"
script: script:
- "./node_modules/.bin/grunt test" - "./node_modules/.bin/grunt test"
- "./bin/phpunit" - |
if [ "$TEST_SUITE" = "1" ]; then
"./bin/phpunit" "tests/classes/";
else
"./bin/phpunit" "tests/Alchemy/";
fi
notifications: notifications:
hipchat: hipchat:
rooms: rooms:

View File

@@ -18,10 +18,10 @@ main:
path: '/tmp/db.sqlite' path: '/tmp/db.sqlite'
charset: UTF8 charset: UTF8
cache: cache:
type: MemcacheCache type: RedisCache
options: options:
host: localhost host: localhost
port: 11211 port: 6379
search-engine: search-engine:
type: elasticsearch type: elasticsearch
# type: phrasea # type: phrasea

View File

@@ -18,10 +18,10 @@ main:
path: '/tmp/db.sqlite' path: '/tmp/db.sqlite'
charset: UTF8 charset: UTF8
cache: cache:
type: MemcacheCache type: RedisCache
options: options:
host: localhost host: localhost
port: 11211 port: 6379
search-engine: search-engine:
type: elasticsearch type: elasticsearch
# type: phrasea # type: phrasea