Skip to content

Commit

Permalink
Adjust travis configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
acoburn committed Jan 31, 2019
1 parent 631f188 commit a05a881
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,26 +70,26 @@ jobs:
stage: deploy
jdk: oraclejdk8
env: JOB=sonatype
if: branch = master AND type = push
if: branch = trellis-0.8.x AND type = push
# Only automate the publication of SNAPSHOTS
script: if [[ $(./gradlew -q getVersion) == *SNAPSHOT* ]]; then ./gradlew publish ; fi

# deploy to Docker hub
- name: "Publish to Docker hub"
stage: deploy
jdk: oraclejdk8
if: branch = master AND type = push
if: branch = trellis-0.8.x AND type = push
env: JOB=docker
before_script: echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
# Note: for maintenance branches, remove the dockerPushLatest task
script: if [[ $(./gradlew -q getVersion) == *SNAPSHOT* ]]; then ./gradlew dockerPush dockerPushDevelop; else ./gradlew dockerPush dockerPushLatest; fi
script: if [[ $(./gradlew -q getVersion) == *SNAPSHOT* ]]; then ./gradlew dockerPush; else ./gradlew dockerPush dockerPushLatest; fi

# deploy to AWS
- name: "Publish JavaDocs"
stage: deploy
jdk: oraclejdk8
env: JOB=aws
if: branch = master AND type = push
if: branch = trellis-0.8.x AND type = push
script: ./gradlew apidocs
deploy:
provider: s3
Expand Down

0 comments on commit a05a881

Please sign in to comment.