-
Notifications
You must be signed in to change notification settings - Fork 179
Fix travis slow builds #112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix travis slow builds #112
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the thorough work! I would like just some slight modifications...
.travis.yml
Outdated
install: travis_retry travis_wait composer update --no-interaction --prefer-dist --prefer-stable $COMPOSER_OPTIONS | ||
install: | ||
- composer install --prefer-dist | ||
- composer remove friendsofphp/php-cs-fixer --dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would move this composer remove
into the before install step, with a --no-update
flag to avoid any actual modification of the vendor folder, it should be faster
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
composer remove
will launch composer install
after delete row from file. Please, see last build.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you use the --no-update
flag it will not.
.travis.yml
Outdated
@@ -17,7 +17,10 @@ before_install: | |||
- composer self-update | |||
- composer global require hirak/prestissimo | |||
|
|||
install: travis_retry travis_wait composer update --no-interaction --prefer-dist --prefer-stable $COMPOSER_OPTIONS | |||
install: | |||
- composer install --prefer-dist |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this composer install
pre-step still required?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove composer install
Add flag '--no-update'
@Jean85 Do I still have to do something on the task? Or are you considering another way to solve the problem? Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's perfect now, thanks!
For improve perfomance we need:
friendsofphp/php-cs-fixer
before UnitTestscs
taskSee #110