-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
64 lines (55 loc) · 4.55 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
56
57
58
59
60
61
62
63
64
# Travis CI Java documentation can be found in:
# https://docs.travis-ci.com/user/languages/java/
language: java
# https://docs.travis-ci.com/user/multi-os/
os: linux
# We can specify a list of JDKs to be used for testing. A list of available JDKs in Trusty can be seed in:
# https://docs.travis-ci.com/user/reference/trusty/#jvm-clojure-groovy-java-scala-images
jdk: oraclejdk11
# https://docs.travis-ci.com/user/job-lifecycle#skipping-the-installation-phase
install: skip
# Grant execute permission to prevent error like:
# xxx.sh: Permission denied
before_script:
- chmod +x .travis/common.sh
- source ./.travis/common.sh
- 'printInfo "[INSTALL] Grant execute permission"'
- chmod +x .travis/install.sh
- chmod +x .travis/deploy.sh
- chmod +x mvnw
# Custom Maven install script:
# https://docs.travis-ci.com/user/job-lifecycle/
# https://docs.travis-ci.com/user/customizing-the-build
script:
- "./.travis/install.sh"
# Decrypt file `gpg.asc.enc` before deployment
# https://docs.travis-ci.com/user/encrypting-files/
before_deploy:
- 'printWarn "[DEPLOY] TRAVIS_BRANCH: $TRAVIS_BRANCH"'
- 'printWarn "[DEPLOY] TRAVIS_TAG: $TRAVIS_TAG"'
- openssl aes-256-cbc -K $encrypted_4f0d00631887_key -iv $encrypted_4f0d00631887_iv -in .travis/gpg.asc.enc -out .travis/gpg.asc -d
deploy:
- skip_cleanup: true
provider: script
script: ./.travis/deploy.sh
on:
all_branches: true
condition: $TRAVIS_BRANCH =~ ^(feature|release|hotfix)\/.*$
- skip_cleanup: true
provider: script
script: ./.travis/deploy.sh
on:
tags: true
# https://docs.travis-ci.com/user/notifications#default-notification-settings
notifications:
email:
on_success: change
on_failure: always
# https://docs.travis-ci.com/user/environment-variables/
# https://docs.travis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