Skip to content

Commit

Permalink
mvndeploy.sh: set -e, chmod +x
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Neumann <dev@fxnn.de>
  • Loading branch information
fxnn committed Nov 1, 2018
1 parent 4e6a8bd commit 7d04931
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ install: mvn install -P !build-extras -DskipTests=true -Dmaven.javadoc.skip=true
script: mvn test -P !build-extras -B
after_success:
- mvn clean test jacoco:report coveralls:report -P record-coverage,!build-extras -B
- ./src/main/build/mvndeploy.sh
- chmod +x src/main/build/mvndeploy.sh && ./src/main/build/mvndeploy.sh
cache:
directories:
- ~/.m2/repository
2 changes: 2 additions & 0 deletions src/main/build/mvndeploy.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env bash
# based on http://www.debonair.io/post/maven-cd/

set -e

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"

if [ "$TRAVIS_BRANCH" = 'master' ] && [ "$TRAVIS_PULL_REQUEST" == 'false' ]; then
Expand Down

0 comments on commit 7d04931

Please sign in to comment.