Skip to content

Commit

Permalink
Add maven.test.redirectTestOutputToFile=true
Browse files Browse the repository at this point in the history
  • Loading branch information
eddumelendez committed Mar 30, 2016
1 parent ce4a104 commit 8b4ccb5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ jdk:
- openjdk7

before_script:
- mvn install -q -DskipTests=true
- mvn install -q -DskipTests=true -Dmaven.test.redirectTestOutputToFile=true

script: mvn install -q
script: mvn install -q -Dmaven.test.redirectTestOutputToFile=true

after_success:
- chmod -R 777 ./travis/after_success.sh
Expand Down
4 changes: 2 additions & 2 deletions travis/after_success.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ echo "Java detected: ${VER}"

if [ "$mybatis_repo" == "https://github.com/mybatis/mybatis-spring-boot.git" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
if [ $VER == "18" ]; then
mvn clean deploy -q --settings ./travis/settings.xml
mvn clean deploy -q -Dmaven.test.redirectTestOutputToFile=true --settings ./travis/settings.xml
echo -e "Successfully deployed SNAPSHOT artifacts to Sonatype under Travis job ${TRAVIS_JOB_NUMBER}"
mvn clean test jacoco:report coveralls:report -q
mvn clean test jacoco:report coveralls:report -q -Dmaven.test.redirectTestOutputToFile=true
echo -e "Successfully ran coveralls under Travis job ${TRAVIS_JOB_NUMBER}"
# various issues exist currently in building this so comment for now
# mvn site site:deploy -q
Expand Down

0 comments on commit 8b4ccb5

Please sign in to comment.