Skip to content

Commit

Permalink
Merge pull request #8868 from pamil/1.0-allow-failures-7.2
Browse files Browse the repository at this point in the history
[Travis] Allow failures for PHP 7.2 builds
  • Loading branch information
pamil authored Oct 17, 2017
2 parents 153e380 + 1136af9 commit af13f2c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ matrix:
apt:
packages:
- parallel

allow_failures:
-
php: 7.2
fast_finish: true
cache:
yarn: true
directories:
Expand Down
2 changes: 1 addition & 1 deletion etc/travis/suites/application/is_suitable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
exit 0 # Always execute full suite on branch builds
fi

if [ $(git diff --name-only HEAD origin/${TRAVIS_BRANCH} | grep -c -v -e ^docs -e ^LICENSE -e ^README.md -E "^CHANGELOG-[\d\.]+.md" -E "^UPGRADE-[\d\.]+.md") -eq 0 ]; then
if [ $(git diff --name-only HEAD origin/master | grep -c -v -e ^docs -e ^CHANGELOG.md -e ^CONTRIBUTING.md -e ^LICENSE -e ^PULL_REQUEST_TEMPLATE.md -e ^README.md -e ^UPGRADE.md) -eq 0 ]; then
print_header "Skipped suite" "Application"
print_warning "No other changes than those in docs/* were found"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion etc/travis/suites/docs/is_suitable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
exit 0 # Always execute full suite on branch builds
fi

if [ $(git diff --name-only HEAD origin/${TRAVIS_BRANCH} | grep -c -e ^docs) -eq 0 ]; then
if [ $(git diff --name-only HEAD origin/master | grep -c -e ^docs) -eq 0 ]; then
print_header "Skipped suite" "Docs"
print_warning "No changes detected in docs/*"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion etc/travis/suites/packages/is_suitable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
exit 0 # Always execute full suite on branch builds
fi

if [ $(git diff --name-only HEAD origin/${TRAVIS_BRANCH} | grep -c -e ^src/Sylius/Bundle -e ^src/Sylius/Component) -eq 0 ]; then
if [ $(git diff --name-only HEAD origin/master | grep -c -e ^src/Sylius/Bundle -e ^src/Sylius/Component) -eq 0 ]; then
print_header "Skipped suite" "Packages"
print_warning "No changes detected in src/Sylius/Bundle/* or src/Sylius/Component/*"
exit 1
Expand Down

0 comments on commit af13f2c

Please sign in to comment.