Skip to content

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

Merged
merged 3 commits into from
Feb 28, 2018

Conversation

agentsib
Copy link
Contributor

@agentsib agentsib commented Feb 27, 2018

For improve perfomance we need:

  1. Remove package friendsofphp/php-cs-fixer before UnitTests
  2. Return package on cs task

See #110

Copy link
Contributor

@Jean85 Jean85 left a 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
Copy link
Contributor

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

Copy link
Contributor Author

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.

Copy link
Contributor

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
Copy link
Contributor

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?

Copy link
Contributor Author

@agentsib agentsib left a 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'

@agentsib
Copy link
Contributor Author

@Jean85 Do I still have to do something on the task? Or are you considering another way to solve the problem?

Thanks

Copy link
Contributor

@Jean85 Jean85 left a 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!

@Jean85 Jean85 merged commit 775432a into getsentry:releases/1.x Feb 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants