forked from shannah/Java-Objective-C-Bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (45 loc) · 1.45 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
language: java
jdk:
- openjdk11
env:
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
cache:
directories:
- $HOME/.m2/repository
before_cache:
- rm -R $HOME/.m2/repository/ca/weblite
before_install:
- openssl aes-256-cbc -K $encrypted_2dffe6d9f24e_key -iv $encrypted_2dffe6d9f24e_iv -in codesigning.asc.enc -out codesigning.asc -d
- gpg --fast-import codesigning.asc
- gpg --list-keys
- cp .travis.settings.xml $HOME/.m2/settings.xml
install: true
script: "mvn -e clean install"
deploy:
- provider: script
script: "mvn -e -q -P travis,release -Dmaven.test.skip=true clean deploy"
skip_cleanup: true
on:
branch: develop
tags: false
- provider: script
# add "`git log --pretty=format:'%h' -n 1`" for git commit hash
script: "mvn -e -P travis,release -Dmaven.test.skip=true clean deploy -Drevision=$TRAVIS_TAG-`date +%Y%m%d`"
skip_cleanup: true
on:
branch: master
tags: true
notifications:
email:
recipients:
on_success: change
on_failure: always
webhooks:
urls:
# - https://webhooks.gitter.im/e/02860416326b2469fdcc
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always