Fix Travis CI build (php7.2 with coverage=1 lint=1
stage)
#168
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR fixes the failing Travis CI build stage. Running builds that have succeeded in the past cause them to fail when ran again. The problem consisted of 2 parts (kept 2 commits because different tickets, but same purpose of fixing build 🤷♂️).
Problem 1: A namespacing error (#166)
Example build: https://travis-ci.org/api-platform/schema-generator/jobs/541147735
The dependencies aren't locked down very strict and a composer update was done before this travis stage was ran. This caused the dependencies for this stage to be updated beyond the lock file. Changing the command from update to install solved this.
Problem 2: Whitespace in e2e test files (#167)
Because of problem 1, the compile script never reached the point where it tests to diff against the produced files in tests/e2e/. Because the tests had been failing for some time, something changed which makes the files not match with the produced files anymore (but it's only a space):