Skip to content

Commit

Permalink
deploy info
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalpoizat committed Oct 25, 2020
1 parent cc2cfa2 commit e338bf3
Showing 1 changed file with 45 additions and 4 deletions.
49 changes: 45 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ sudo: false
# - oraclejdk8

before_install:
- sudo apt-get -y install graphviz
# does not seem to work anymore on April, 3rd, 2017 (JPM down?)
# - curl -sL https://github.com/jpm4j/jpm4j.installers/raw/master/dist/biz.aQute.jpm.run.jar >jpm4j.jar
# - java -jar jpm4j.jar -u init
Expand All @@ -28,7 +29,6 @@ script:

after_success:
- ./gradlew jar # generate jar file
- sudo apt install graphviz
- ./gradlew asciidoctor # generate documentation
# - ./gradlew :plantUml
# does not seem to work anymore on April, 3rd, 2017 (JPM down?)
Expand All @@ -43,10 +43,51 @@ before_deploy:
- mv "${DOCDIR}/${DOCFILE}.pdf" "${DOCDIR}/${DOCFILE}-${VERSION}.pdf"
- export BINARY="${BINDIR}/${BINFILE}.jar"
- export DOCUMENTATION="${DOCDIR}/${DOCFILE}-${VERSION}.pdf"
- echo ${BINARY}
- echo ${DOCUMENTATION}

- echo binary is ${BINARY}
- echo documentation is ${DOCUMENTATION}
- |
if [ $TRAVIS_BRANCH = "develop" ]
then
export TRAVIS_TAG=v${VERSION}-SNAPSHOT
else
export TRAVIS_TAG=v${VERSION}
fi
- |
if [ $TRAVIS_BRANCH = "develop" ]
then
git tag ${TRAVIS_TAG}
echo tag ${TRAVIS_TAG}
else
echo no tag
fi
deploy:
- provider: releases
api_key:
secure: aVme28spW6hNmDtHHQBuffcKNG7FRsN4Qa8GrRQzsIlTG9dIvnCMp64Wtz/PFr4Cm7NRgR3YshaL3GHQaxaGZLnJCmHRVrHQHa7oPd+mfo1/4Azzh73N91aIn6UqKr0Cd/nZtXa9+fDPD4UZARt8j3pkOf4e5ghwi3k6fQNAHdPIKlr+9o00BdursmlbU9E0Kwu7jNa1kPrxa/6XdFRLXRgsEqYARq2069OXXBU/tkfz6e4klAswR5ZxgoaqxhKjyZogDQOeffyGc1TR8TemmXDaOGknC0fc5+V7C7z4W7o/MWjARL3c8RTkkGFvQhTynJ55Txs88W3ueYa1AsN6UFJ5RYp6zD4KODYb0yU/g1RJ91On9YAcI+ObOpq6os7t5CAjgX2jw49/bfQwaPF/WTrY3sijjsG9VVBm86El8bTHO/qEu9rypgA2DHLFAl7Kzd/we2TBTjYSs9Dj6Zi0pSzyVmAJ8VaemmkAZEW8dDJBfnvoLvRsI+V5Rpk626qa/fF7gIJPpgMAYn32k07wVRgUK/ajoYqKQElTphoNpmq2tl9TctaRi8mj32UOf8P71ehQ2ZCSeagYXWjhhMxgVl8/j8TGxVu6SQNi8nzOM/wxtZQNS3jTtMiRz/ONF+3RS2nVi5EuX7pOGlEnXMvhNWQbd7xMZdWiTdes7a1lW9c=
file:
- ${BINARY}
- ${DOCUMENTATION}
skip_cleanup: true
overwrite: true
draft: false
on:
#branch master
tags: true
all_branches: true
name: $TRAVIS_TAG
- provider: releases
api_key:
secure: aVme28spW6hNmDtHHQBuffcKNG7FRsN4Qa8GrRQzsIlTG9dIvnCMp64Wtz/PFr4Cm7NRgR3YshaL3GHQaxaGZLnJCmHRVrHQHa7oPd+mfo1/4Azzh73N91aIn6UqKr0Cd/nZtXa9+fDPD4UZARt8j3pkOf4e5ghwi3k6fQNAHdPIKlr+9o00BdursmlbU9E0Kwu7jNa1kPrxa/6XdFRLXRgsEqYARq2069OXXBU/tkfz6e4klAswR5ZxgoaqxhKjyZogDQOeffyGc1TR8TemmXDaOGknC0fc5+V7C7z4W7o/MWjARL3c8RTkkGFvQhTynJ55Txs88W3ueYa1AsN6UFJ5RYp6zD4KODYb0yU/g1RJ91On9YAcI+ObOpq6os7t5CAjgX2jw49/bfQwaPF/WTrY3sijjsG9VVBm86El8bTHO/qEu9rypgA2DHLFAl7Kzd/we2TBTjYSs9Dj6Zi0pSzyVmAJ8VaemmkAZEW8dDJBfnvoLvRsI+V5Rpk626qa/fF7gIJPpgMAYn32k07wVRgUK/ajoYqKQElTphoNpmq2tl9TctaRi8mj32UOf8P71ehQ2ZCSeagYXWjhhMxgVl8/j8TGxVu6SQNi8nzOM/wxtZQNS3jTtMiRz/ONF+3RS2nVi5EuX7pOGlEnXMvhNWQbd7xMZdWiTdes7a1lW9c=
file:
- ${BINARY}
- ${DOCUMENTATION}
skip_cleanup: true
overwrite: true
draft: true
on:
branch: develop
tags: false
name: $TRAVIS_TAG

cache:
directories:
Expand Down

0 comments on commit e338bf3

Please sign in to comment.