Skip to content

Commit

Permalink
Merge pull request #101 from luan-cestari/FixTravisDeploy
Browse files Browse the repository at this point in the history
Fix travis deploy
  • Loading branch information
derek63 committed Jan 26, 2015
2 parents 84b8190 + 63a69fe commit 0807f6d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ language: java
jdk:
- openjdk7
- oraclejdk8
- oraclejdk7
before_install:
- cp ./etc/settings.xml ~/.m2/
- cp ./etc/onFailure.sh ~/
Expand Down
12 changes: 8 additions & 4 deletions etc/onSuccess.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env sh
#!/bin/bash

echo "DEPLOY MASTER TRAVIS BUILD"
echo "Current directory is $(pwd)"
'[[ $TRAVIS_BRANCH == "master" ]] && [[ $TRAVIS_JDK_VERSION == "openjdk7" ]] && { mvn clean deploy -DskipTests; };'
echo "after_success script"

if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_JDK_VERSION" == "openjdk7" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
echo "DEPLOY MASTER TRAVIS BUILD"
echo "Current directory is $(pwd)"
mvn clean deploy -DskipTests;
fi

0 comments on commit 0807f6d

Please sign in to comment.