diff --git a/phing/build.yml b/phing/build.yml index 2e1f9a842..4e72f9722 100644 --- a/phing/build.yml +++ b/phing/build.yml @@ -64,6 +64,9 @@ deploy: exclude_file: ${blt.root}/phing/files/deploy-exclude.txt exclude_additions_file: ${repo.root}/blt/deploy-exclude-additions.txt gitignore_file: ${blt.root}/phing/files/.gitignore + git: + # If true, deploys will fail if there are uncommitted changes. + failOnDirty: true # File and Directory locations. docroot.relative: ${repo.root.relative}/docroot diff --git a/phing/tasks/deploy.xml b/phing/tasks/deploy.xml index 175ac8965..f618676c2 100644 --- a/phing/tasks/deploy.xml +++ b/phing/tasks/deploy.xml @@ -1,7 +1,28 @@ - + + + + + + + + + + + + Deploy is being run with uncommitted changes. + + + + There are uncommitted changes, commit or stash these changes before deploying. + + + + + diff --git a/scripts/travis/deploy_branch b/scripts/travis/deploy_branch index 82e79cfc6..892bf37e1 100755 --- a/scripts/travis/deploy_branch +++ b/scripts/travis/deploy_branch @@ -2,6 +2,6 @@ set -ev -blt deploy -Ddeploy.commitMsg="Automated commit by Travis CI for Build ${TRAVIS_BUILD_ID}" -Ddeploy.branch="${TRAVIS_BRANCH}-build" +blt deploy -Ddeploy.commitMsg="Automated commit by Travis CI for Build ${TRAVIS_BUILD_ID}" -Ddeploy.branch="${TRAVIS_BRANCH}-build" -Ddeploy.git.failOnDirty=false set +v diff --git a/scripts/travis/deploy_tag b/scripts/travis/deploy_tag index 0203b27b5..0f3bf3e3f 100755 --- a/scripts/travis/deploy_tag +++ b/scripts/travis/deploy_tag @@ -2,6 +2,6 @@ set -ev -blt deploy -Ddeploy.commitMsg="Automated commit by Travis CI for Build ${TRAVIS_TAG}" -Ddeploy.tag="${TRAVIS_TAG}-build" +blt deploy -Ddeploy.commitMsg="Automated commit by Travis CI for Build ${TRAVIS_TAG}" -Ddeploy.tag="${TRAVIS_TAG}-build" -Ddeploy.git.failOnDirty=false set +v