Use build script for CI

This commit is contained in:
Greg Turnquist
2017-05-24 20:29:42 -05:00
parent 7a2df1b14a
commit 7a15c730ae
2 changed files with 8 additions and 6 deletions

View File

@@ -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
script: ./build.bash

7
build.bash Executable file
View File

@@ -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