mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 09:53:15 +00:00
Change travis to run same suites as circleci
This commit is contained in:
27
.travis.yml
27
.travis.yml
@@ -1,18 +1,22 @@
|
|||||||
language: php
|
language: php
|
||||||
sudo: require
|
sudo: require
|
||||||
env:
|
env:
|
||||||
- SETUP_MODE=update TEST_SUITE=1
|
- TEST_SUITE=1
|
||||||
- SETUP_MODE=update TEST_SUITE=2
|
- TEST_SUITE=2
|
||||||
|
- TEST_SUITE=3
|
||||||
|
|
||||||
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:
|
||||||
- nvm install 0.12.0
|
- nvm install 0.12.0
|
||||||
- phpenv config-rm xdebug.ini
|
- phpenv config-rm xdebug.ini
|
||||||
@@ -35,23 +39,26 @@ before_script:
|
|||||||
- "./bin/developer system:uninstall"
|
- "./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;"
|
- "./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
|
./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
|
|
||||||
- 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 ab_test.sitepreff ab, db_test.pref db WHERE db.prop = "version"'
|
||||||
- "./bin/developer ini:setup-tests-dbs"
|
- "./bin/developer ini:setup-tests-dbs"
|
||||||
- "./bin/console searchengine:index:create"
|
- "./bin/console searchengine:index:create"
|
||||||
- "./bin/developer phraseanet:regenerate-sqlite"
|
- "./bin/developer phraseanet:regenerate-sqlite"
|
||||||
- "./bin/developer phraseanet:generate-js-fixtures"
|
- "./bin/developer phraseanet:generate-js-fixtures"
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- "./node_modules/.bin/gulp test"
|
- "./node_modules/.bin/gulp test"
|
||||||
- |
|
- |
|
||||||
if [ "$TEST_SUITE" = "1" ]; then
|
case "$TEST_SUITE" in
|
||||||
"./bin/phpunit" "tests/classes/";
|
1 )
|
||||||
else
|
"./bin/phpunit" --exclude-group legacy ;;
|
||||||
"./bin/phpunit" "tests/Alchemy/";
|
2 )
|
||||||
fi
|
"./bin/phpunit" --group legacy --exclude-group web;;
|
||||||
|
3 )
|
||||||
|
"./bin/phpunit" --group web;;
|
||||||
|
esac
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
hipchat:
|
hipchat:
|
||||||
rooms:
|
rooms:
|
||||||
|
Reference in New Issue
Block a user