diff --git a/.travis.yml b/.travis.yml index 9b5c85e..882dba8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,9 +21,4 @@ branches: - gh-pages sudo: false -script: - - if [ "${TRAVIS_PULL_REQUEST}" = "false" -a "${TRAVIS_BRANCH}" = "master" -a "${PROFILE}" = "non-existent" ]; then - - mvn -Pdistribute,snapshot,docs clean deploy - - else - - mvn clean dependency:list test -P${PROFILE} -Dsort - - fi \ No newline at end of file +script: ./build.bash \ No newline at end of file diff --git a/build.bash b/build.bash new file mode 100755 index 0000000..98063d7 --- /dev/null +++ b/build.bash @@ -0,0 +1,7 @@ +#!/bin/bash -x + +if [ "${TRAVIS_PULL_REQUEST}" = "false" -a "${TRAVIS_BRANCH}" = "master" -a "${PROFILE}" = "non-existent" ]; then + mvn -Pdistribute,snapshot,docs clean deploy +else + mvn clean dependency:list test -P${PROFILE} -Dsort +fi \ No newline at end of file