Skip to content

Commit 71f6709

Browse files
committed
update travis
1 parent 226b6bc commit 71f6709

File tree

2 files changed

+56
-1
lines changed

2 files changed

+56
-1
lines changed

.travis.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>info.unterrainer.commons</groupId>
77
<artifactId>parent-pom</artifactId>
8-
<version>0.0.22</version>
8+
<version>0.0.24</version>
99
</parent>
1010

1111
<properties>

0 commit comments

Comments
 (0)