forked from openzipkin/brave
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (50 loc) · 2.85 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
# Default JDK is really old: 1.8.0_31; Trusty's is less old: 1.8.0_51
# https://docs.travis-ci.com/user/ci-environment/#Virtualization-environments
sudo: required
dist: trusty
cache:
directories:
- $HOME/.m2
language: java
jdk:
- oraclejdk8
before_install:
# Parameters used during release
- git config user.name "$GH_USER"
- git config user.email "$GH_USER_EMAIL"
# setup https authentication credentials, used by ./mvnw release:prepare
- git config credential.helper "store --file=.git/credentials"
- echo "https://$GH_TOKEN:@github.com" > .git/credentials
install:
# Override default travis to use the maven wrapper
- ./mvnw install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
script:
- ./travis/publish.sh
# Don't build release tags. This avoids publish conflicts because the version commit exists both on master and the release tag.
# See https://github.com/travis-ci/travis-ci/issues/1532
branches:
except:
- /^[0-9]/
env:
global:
# Ex. travis encrypt BINTRAY_USER=your_github_account
- secure: "JkYf85iTVHAQb+gyuKwstLApmzUvSfwEdR9nBUypQv8wgLQIi8jry461eESt6nX96votG4EC4e0olZlfYCWVbd2dF/t9VzUT8xZr5aPgP/RRNpJVnJ96UKciAScRAm41NFgXJQojlIeUJEP98eugSMceijHEEAvRcWOOH1PTHUM="
# Ex. travis encrypt BINTRAY_KEY=xxx-https://bintray.com/profile/edit-xxx --add
- secure: "Rgi25T93QYhJCyQq1AATA0hpY5Tr7uJkEeFw5vHfVIv9ampPpGv9kYVkoVclThRT/V+QAyA03ii15onXySMxcYvSt2kZ2CrV4hPvQ/Pz0Be8/snM9HT4kbc6RQmJLkYgtIoe5OJSHl0lfzz1vha1fIEyLngDcajh3HZjJgUZMRc="
# Ex. travis encrypt [email protected] --add
- secure: "dFn6U2yHVpRGE28dKxMNIbtMKs+5gLTfpPvc2zAs6E7XYBFYrsPLbRpVTuBnNTEzONnyEnp23BlUurMi17njIZ6x1dUIcgxBHIznPpP7e1pd8jCedl9byGy9rgkhM+mlfZL2pZqrLz/GYlJaZm53G/YGu2668eGGnysotpQz/wo="
# Ex. travis encrypt GH_USER=your_github_account --add
- secure: "kF9AxbQqxnmiO0BB79ck0A9tPSGAJoT8qVpQyTkNthWcPPlCmI0eurZ3SnjcJgCaVsseEY5vg+wH3Ao3+ZqEsaK45Jq8Sb2t6ikcTxOWbP2b0B2KRLcDkBpukeMID3qPXcvTX+0DQ2xQ3dVdVNJEclklWpsRy6KxbEv3d7JaiTU="
# Ex. travis encrypt GH_TOKEN=XXX-https://github.com/settings/tokens-XXX --add
- secure: "OiGGZjM47xtOdRJSpk1WAw55espPMVwvrl1GERfJ77kk2ILY0PAp3r69kRXGg1dXj/Um85Ceek9wZ5xH/5Tdr9Rixef+Oc97VjRWIM1zriM5b6Y9r3NAhnLQvtkHFleRz5DffXrVRcy2MaN+aR7zsM8xOPMAjMZv7nb8rsunVE4="
# Ex. travis encrypt SONATYPE_USER=your_sonatype_account
- secure: "a30efC2iKHFlrtdFG0HgrNQQhiosmTRPRR0FUviqvQtBoBg3/U4o6Rqee27PVKq8m/tJ1GwLufZFMcvSMCzPs/D/sggqUw6a0wUNTjG6lpbQWy2lLpnw3RwqK46bY+jZsV2SxLyElbZOOC/qHzsPJooocuwwXvDkvRmYxocgiMc="
# Ex. travis encrypt SONATYPE_PASSWORD=your_sonatype_password
- secure: "XD8xiZw82rGZ0IK+xYJjfOTVsNdfliLdsT7izRrLt3LePj4ixQt0sD7z7RgVimYRQ8cqq0uuAU612DtWv/MrU0KQL33xYNWSKK3qw0K8ZYfch7/nJStU5LTqepC6Vldfn87X5KzgVIOoYCQpWkmUjI4Xpr4dnYrnmu+l2kpFCuY="
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/637e968b45032d16ee26
on_success: change
on_failure: always
on_start: false