Skip to content

Commit c38d607

Browse files
author
Matthias Fuchs
committed
preparation for travis build
1 parent 2a84838 commit c38d607

File tree

2 files changed

+68
-0
lines changed

2 files changed

+68
-0
lines changed

.travis.settings.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
4+
5+
<servers>
6+
<server>
7+
<id>ossrh</id>
8+
<username>${env.OSSRH_USER}</username>
9+
<password>${env.OSSRH_PASSWORD}</password>
10+
</server>
11+
</servers>
12+
13+
</settings>

.travis.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
language: java
2+
3+
jdk:
4+
- openjdk11
5+
6+
env:
7+
global:
8+
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
9+
# via the "travis encrypt" command using the project repo's public key
10+
11+
12+
cache:
13+
directories:
14+
- $HOME/.m2/repository
15+
16+
before_cache:
17+
- rm -R $HOME/.m2/repository/ca/weblite
18+
19+
before_install:
20+
- openssl aes-256-cbc -K $encrypted_2dffe6d9f24e_key -iv $encrypted_2dffe6d9f24e_iv -in codesigning.asc.enc -out codesigning.asc -d
21+
- gpg --fast-import codesigning.asc
22+
- gpg --list-keys
23+
- cp .travis.settings.xml $HOME/.m2/settings.xml
24+
25+
install: true
26+
27+
script: "mvn -e clean install"
28+
29+
deploy:
30+
- provider: script
31+
script: "mvn -e -q -P travis,release -Dmaven.test.skip=true clean deploy"
32+
skip_cleanup: true
33+
on:
34+
branch: develop
35+
tags: false
36+
- provider: script
37+
# add "`git log --pretty=format:'%h' -n 1`" for git commit hash
38+
script: "mvn -e -P travis,release -Dmaven.test.skip=true clean deploy -Drevision=$TRAVIS_TAG-`date +%Y%m%d`"
39+
skip_cleanup: true
40+
on:
41+
branch: master
42+
tags: true
43+
44+
notifications:
45+
email:
46+
recipients:
47+
- meister.fuchs@gmail.com
48+
on_success: change
49+
on_failure: always
50+
webhooks:
51+
urls:
52+
# - https://webhooks.gitter.im/e/02860416326b2469fdcc
53+
on_success: change # options: [always|never|change] default: always
54+
on_failure: always # options: [always|never|change] default: always
55+
on_start: never # options: [always|never|change] default: always

0 commit comments

Comments
 (0)