Skip to content

Commit

Permalink
minor #718 Adds Doctrine's mapping validation on Travis. (phpeek)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
javiereguiluz committed Dec 4, 2017
2 parents 180d6a6 + 2faf341 commit 4769bb8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,5 @@ script:
- ./bin/console security:check --end-point=http://security.sensiolabs.org/check_lock
# this checks that the composer.json and composer.lock files are valid
- composer validate --strict
# this checks that Doctrine's mapping configurations are valid
- ./bin/console doctrine:schema:validate --skip-sync -vvv --no-interaction

0 comments on commit 4769bb8

Please sign in to comment.