From 7a15c730aedfd302c68d41196a49fbbb84ebef29 Mon Sep 17 00:00:00 2001 From: Greg Turnquist Date: Wed, 24 May 2017 20:29:42 -0500 Subject: [PATCH] Use build script for CI --- .travis.yml | 7 +------ build.bash | 7 +++++++ 2 files changed, 8 insertions(+), 6 deletions(-) create mode 100755 build.bash 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