Skip to content

Commit

Permalink
Merge pull request #8851 from pamil/1.0-optimise-travis
Browse files Browse the repository at this point in the history
Optimise Travis builds
  • Loading branch information
GSadee authored Oct 17, 2017
2 parents e069074 + f75d419 commit 89218de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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/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
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
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/master | grep -c -e ^docs) -eq 0 ]; then
if [ $(git diff --name-only HEAD origin/${TRAVIS_BRANCH} | 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/master | grep -c -e ^src/Sylius/Bundle -e ^src/Sylius/Component) -eq 0 ]; then
if [ $(git diff --name-only HEAD origin/${TRAVIS_BRANCH} | 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 89218de

Please sign in to comment.