Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 9609328

Browse files
committed
Moved travis initialization into bash script
- And added test info in README
1 parent 227a027 commit 9609328

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

.travis.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ env:
1010
- SYMFONY_VERSION=2.3.*
1111

1212
before_script:
13-
- composer install --dev
14-
- cp ./Tests/Functional/app/config/parameters.yml.dist ./Tests/Functional/app/config/parameters.yml
15-
- php Tests/Functional/app/console doctrine:phpcr:init:dbal
16-
- php Tests/Functional/app/console doctrine:phpcr:register-system-node-types
13+
- ./Tests/Functional/init_travis.sh
1714

1815
script: phpunit --coverage-text
1916

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,14 @@ Add a requirement for ``symfony-cmf/routing-auto-bundle`` to your
5050
composer.json and instantiate the bundle in your AppKernel.php
5151

5252
new Symfony\Cmf\Bundle\RoutingAutoBundle\SymfonyCmfRoutingAutoBundle()
53+
54+
## Running the tests
55+
56+
To initialize the test environment run the initialization script (you only need
57+
to do this once):
58+
59+
./Tests/Functional/init_travis.sh
60+
61+
Then run all the tests with:
62+
63+
phpunit -c phpunit.xml.dist

Tests/Functional/init_travis.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
composer install --dev
4+
cp ./Tests/Functional/app/config/parameters.yml.dist ./Tests/Functional/app/config/parameters.yml
5+
php Tests/Functional/app/console doctrine:phpcr:init:dbal
6+
php Tests/Functional/app/console doctrine:phpcr:register-system-node-types

0 commit comments

Comments
 (0)