-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
40 lines (33 loc) · 1.73 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
38
39
40
## see https://travis-ci.org/kameshchauhanr/template
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: kEmbwstjQDAjsl3TR4d0rMFP99ZL4t9Sa19Bfx2FfwlStiwWyLDw9bmNGkYQyuvpMTh6igWfvx1sTvOhKqVGDCdj89/5GJquIrfPNJSJXPr3KP4zdU6xEhK57gGCa4IfMF5jcAe24z6fOrPLzEVyqMBrIxu8RQryqfqPtVvRj+uDI0xn6IPxGZ6nc97IRcIykwufNChsMOavE595FXn9WmVSBd/O+VY4LLefRLOFWxL1dTGlUxJLzSAYEVTCxYnz+lbCmfbyreu9eSmDZRnti78cjss2cHDzkInl/P1U7AXj6My0JJ8+TsVHt/HBLYDsEotv/ayTxH859qjDpvkL3FRoXEv4PtVn8TsyUjfJoCwwU5/pvFGElIlE2l6tpfnmSKkJ70eADIzox4Qi+biNx7M+mXC8tl7S0r+mSI2kjJgUMAZjjbbZQnBQ+RQCPKcseB0X2bXKxOmFb+t4OGZ9BXZWmxFXcljgiSu+Fbz2VRaTPG3OSjjIiOPeE3NdfJwoHrqBDcMzsh0c+UCTjpqghI0jHPZe8BcySEjJ5yUM74cUtGuhPru4Hs0xTKOKUubUFQ9oOsKLSgWNg28Px6BhMbEucs/8AZHtT1EiGEJPV7JB/i7qVPYGhGhWKF4id08GOhh+pd1lbNyO+Y0G1wG+VBtRjiqPIIN+NqXZbfi4goM=
file:
- model/target/model-$project_version.jar
- entrypoint/target/entrypoint-$project_version.jar
skip_cleanup: true
on:
repo: kameshchauhan/openfaas-dependency
name: $project_version
cache:
directories:
- ~/.m2/repository
# Send a slack notification
notifications:
email: true