Skip to content

Commit 0cf7a43

Browse files
authoredSep 17, 2018
Merge pull request Sylius#9683 from pamil/1.1-is-suitable
Do not run tests if not needed
2 parents d0f5b5a + eb86d91 commit 0cf7a43

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed
 
File renamed without changes.

‎etc/travis/suites/application/is_suitable.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
66
exit 0 # Always execute full suite on branch builds
77
fi
88

9-
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
9+
if [ $(git diff --name-only HEAD origin/$TRAVIS_BRANCH | grep -c -v -e ^docs -e ^.github -e ^CHANGELOG -e ^LICENSE -e ^README -e ^UPGRADE) -eq 0 ]; then
1010
print_header "Skipped suite" "Application"
1111
print_warning "No other changes than those in docs/* were found"
1212
exit 1

‎etc/travis/suites/common/before_install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/../../../bash/common.lib.sh"
44

55
print_header "Customizing the environment" "Sylius"
6-
run_command "git fetch origin master:refs/remotes/origin/master" || exit $? # Make origin/master available for is_suitable steps
6+
run_command "git fetch origin $TRAVIS_BRANCH:refs/remotes/origin/$TRAVIS_BRANCH" || exit $? # Make origin/master available for is_suitable steps
77
run_command "phpenv config-rm xdebug.ini" # Disable XDebug
88
run_command "echo \"memory_limit=4096M\" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini" || exit $? # Increase memory limit to 4GB
99
run_command "mkdir -p \"${SYLIUS_CACHE_DIR}\"" || exit $? # Create Sylius cache directory

‎etc/travis/suites/docs/is_suitable.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
66
exit 0 # Always execute full suite on branch builds
77
fi
88

9-
if [ $(git diff --name-only HEAD origin/master | grep -c -e ^docs) -eq 0 ]; then
9+
if [ $(git diff --name-only HEAD origin/$TRAVIS_BRANCH | grep -c -e ^docs) -eq 0 ]; then
1010
print_header "Skipped suite" "Docs"
1111
print_warning "No changes detected in docs/*"
1212
exit 1

‎etc/travis/suites/packages/is_suitable.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
66
exit 0 # Always execute full suite on branch builds
77
fi
88

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

0 commit comments

Comments
 (0)
Please sign in to comment.