Skip to content

Commit 4769bb8

Browse files
committed
minor #718 Adds Doctrine's mapping validation on Travis. (phpeek)
This PR was merged into the master branch. Discussion ---------- Adds Doctrine's mapping validation on Travis. Runs `doctrine:schema:validate` command with database sync skipping and no interaction flags. This is what I usually setup in CI for my projects to avoid common Doctrine's mapping errors e.g. missing `inversedBy` properties. Commits ------- 2faf341 Adds Doctrine's mapping validation on Travis.
2 parents 180d6a6 + 2faf341 commit 4769bb8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,5 @@ script:
4141
- ./bin/console security:check --end-point=http://security.sensiolabs.org/check_lock
4242
# this checks that the composer.json and composer.lock files are valid
4343
- composer validate --strict
44+
# this checks that Doctrine's mapping configurations are valid
45+
- ./bin/console doctrine:schema:validate --skip-sync -vvv --no-interaction

0 commit comments

Comments
 (0)