-
Notifications
You must be signed in to change notification settings - Fork 32
Fix: Travis configuration #33
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,30 @@ | ||
language: php | ||
|
||
sudo: false | ||
|
||
php: | ||
- 5.5 | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The See https://getcomposer.org/doc/03-cli.md#install:
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As pointed out above, when builds are sent to container-based infrastructure, caching can be used. The change above allows to cache dependencies installed with |
||
|
||
env: | ||
global: | ||
secure: Yc+Xohkr/iEUU7FCQuSLXAE9ywNW9g6CfrM1Ki0Hl+fS15F3AXT7dFY8EyCJ4dP1/oI0dBmwrGWrltXV0XWIjGV1Ms3tefCgQpBBAqwT+hImzVP3RbpZW8Iyo2d0VgiDemQF1LWYD/pKu6d8WljTnv5D77NIMdEJjQ0uzeTLWdw= | ||
install: composer install --dev | ||
|
||
before_install: | ||
- composer self-update | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Composer generally emits warnings when it hasn't been updated in a while, and you may run into issues when you're using a different version of composer in development than what lives on Travis. For example, when You can avoid this by either
|
||
|
||
install: | ||
- composer install --prefer-dist | ||
|
||
before_script: | ||
- git config --global user.email "[email protected]" | ||
- git config --global user.name "Travis CI" | ||
|
||
script: | ||
- vendor/bin/phpunit | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similar to https://github.com/codeclimate/php-test-reporter/pull/33/files#r47942080, and since you're requiring Otherwise you could possibly see yourself dealing with issues related to tests passing locally, but not on Travis. This change here explicitly runs |
||
|
||
after_script: | ||
- php composer/bin/test-reporter |
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.
@jpignata
This sends builds to container-based infrastructure, see Using container-based infrastructure: