|
| 1 | +######################## |
| 2 | +### VARIABLES NEEDED ### |
| 3 | +######################## |
| 4 | +# RELEASE Set to true to release a ZIP-file on github (there has to be a |
| 5 | +# target/ directory for that) |
| 6 | +# |
| 7 | +### Deploy |
| 8 | +# GITHUB_API_KEY The api-key of github used to push a release-file |
| 9 | +# GPG_EXECUTABLE should be 'gpg2' |
| 10 | +# GPG_OWNERTRUST The 'ownertrust' export from the key-file used to sign (base64 encoded) |
| 11 | +# GPG_SECRET_KEYS The 'secret-key' export from the key-file used to sign (base64 encoded) |
| 12 | +# GPG_PASSPHRASE The passphrase used when generating the GPG-key you're now importing |
| 13 | +# MAVEN_CENTRAL 'true' if you want to deploy to maven-central; 'false' or undefined if not |
| 14 | +# SONATYPE_PASSWORD The password of your sonatype-account used to push to maven-central |
| 15 | +# SONATYPE_USERNAME The userName of your sonatype-account used to push to maven-central |
| 16 | +# |
| 17 | +#################### |
| 18 | +### GENERAL INFO ### |
| 19 | +#################### |
| 20 | +# - The 'deploy' step in Travis isn't the same process as the rest. So you have to re-source |
| 21 | +# the functions into that process. More than that it isn't a full sh process like with the |
| 22 | +# script-phase. So you cannot even source from there directly. That's why the source |
| 23 | +# command is IN the deploy.sh script. |
| 24 | + |
| 25 | +language: java |
| 26 | +jdk: |
| 27 | + - openjdk14 |
| 28 | +before_install: |
| 29 | + - git clone https://github.com/UnterrainerInformatik/Travis-Scripts.git travis |
| 30 | + - source travis/functions.Java.sh |
| 31 | + - tr_setProjectSubdir Java |
| 32 | + - source $TRAVIS/before_install.sh |
| 33 | +install: |
| 34 | + - source $TRAVIS/install.sh |
| 35 | +before_script: |
| 36 | + - source $TRAVIS/before_script.sh |
| 37 | +script: |
| 38 | + - source $TRAVIS/script.sh |
| 39 | + |
| 40 | +before_deploy: ./$TRAVIS/before_deploy.sh |
| 41 | +deploy: |
| 42 | + - provider: script |
| 43 | + skip_cleanup: true |
| 44 | + script: ./$TRAVIS/deploy.sh |
| 45 | + on: |
| 46 | + branch: master |
| 47 | + - provider: releases |
| 48 | + skip_cleanup: true |
| 49 | + overwrite: true |
| 50 | + api_key: |
| 51 | + secure: $GITHUB_API_KEY |
| 52 | + file: $ARTIFACT_ID.$POM_VERSION.zip |
| 53 | + on: |
| 54 | + tags: true |
| 55 | + branch: master |
0 commit comments