forked from dritter-hd/dlog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·37 lines (30 loc) · 1.62 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
language: java
## export GPG details
before_install:
- echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import
- echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust
install:
mvn --settings .maven.xml install -DskipTests=true -Dgpg.skip -Dmaven.javadoc.skip=true -B -V
## Build and release to maven central
#script:
# mvn clean deploy --settings .maven.xml -DskipTests=true -B -U -Prelease
## Get the project version
before_deploy:
- mvn help:evaluate -N -Dexpression=project.version|grep -v '\['
- export project_version=$(mvn help:evaluate -N -Dexpression=project.version|grep -v '\[')
## Create release in GitHub
deploy:
provider: releases
api_key:
secure: if77lxucHaogiYmlZeRzPsNSH697Fyts78TuiBvSpUR0phVyBjw/lnheoFAPuVmy+DHelY1pOmNdX6H5zI7IqLwkiCc85XN7u0kc+XdJOdml/NC8mmuBQ+tUGIb14hD1voH4sSO8VEBvA7AaeTCFHp/3kYPK6KFjhW70eAMSHxr5eukBaOQsYRBlFYh/HC7wBSCnRcL3RNXZZcOf1FUTEifGpIMeWTMEaKloCAqZXXv8PhILChNxTdIOlhpom0Wt13dXux0i6D5Y9glnePEehRTOtAXI1W/Y9V9XRdmBjsNGf1qELynppZZtwz0L98UQ5F3gryLVxXYXyv0jgRs9KfI/Lsw0MsYzXnlyuYBex8HmYId9PHkuI8E74ey8gATixe67ogdC3d/mqCF96hrlseAZLY9egwarEB3ccJx9Qy7+8CCu5QQUZGd/PL2ehtvhyXlPQNqSlLUOe+R8gU0e5FrT0ohGII+Cs1zxwnItBStBAfqEmau5RjRgo/X4J5kYCjjyQz+ovUpp0strAZpJRPJk4ML7uVw8bvPvj2P5t0695sFpQmTyZqk8a2INlJ6DkKDq/vvlwkJF85mTcYGhvx1fAKKpkBlihEshkBqrHTywgEf3wfG6ptVY5165y+/6eGHti7j2yD2oxOXE+Di2tuKh/Pei2+f7BoxR1Ebjv9A=
file: dlog/target/dlog-$project_version.jar
skip_cleanup: true
on:
repo: dritter-hd/dlog
tags: true
name: $project_version
cache:
directories:
- ~/.m2/repository
jdk:
- openjdk9