Skip to content

Commit

Permalink
Add a deploy step for artifacts in .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Maurizio Turatti committed Jun 5, 2018
1 parent 77e3890 commit 7bbb9d5
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,33 @@ services:
- docker

before_install:
- docker run -d -p 27017:27017 mongo:$MONGO
- ./bin/before-deploy.sh
- docker run -d -p 27017:27017 mongo:$MONGO
- ./bin/before-deploy.sh

install: true

before_script:
- git submodule update --init --recursive
- git submodule update --init --recursive

script:
- docker ps
- mvn clean verify -DskipITs=false
- docker ps
- mvn clean verify -DskipITs=false

after_success:
- if [[ "$MAVEN_DEPLOY" == true ]]; then ./bin/maven-deploy.sh; fi
- if [[ "$MAVEN_DEPLOY" == true ]]; then ./bin/maven-deploy.sh; fi

deploy:
provider: releases
api_key:
secure: EEGZ5uRn23QqhPqiENRZxBkuDw+qyl23ELUr0HHltI/DK+UIsFQrQydZbtl6VIPTzE8O3EOy/PhzTk2zXlh5cfi+THkIAzpNzW93CAUNFMknUV/cDsrgRSKwEXlF1LJ1WqerM8g4pKvyfyJTOIkFwir/1bIZ/ww+8zIqw6+SBlo=
file_glob: true
file:
- "target/*.tar.gz"
- "target/*.zip"
- "target/restheart.jar"
skip_cleanup: true
on:
tags: true

env:
matrix:
Expand Down

0 comments on commit 7bbb9d5

Please sign in to comment.