forked from oliver-schoenherr/zipkin-java
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
executable file
·82 lines (70 loc) · 6.49 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Run `travis lint` when changing this file to avoid breaking the build.
# Use a larger VM as we run a lot of services
# https://docs.travis-ci.com/user/ci-environment/#Virtualization-environments
sudo: required
dist: trusty
addons:
apt:
packages:
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6
cache:
directories:
- $HOME/.m2
language: java
jdk:
- oraclejdk8
services:
- mysql
before_install:
# Manually install cassandra until https://github.com/travis-ci/travis-ci/issues/3952
# See https://github.com/openzipkin/zipkin/issues/706
- curl -SL http://downloads.datastax.com/community/dsc-cassandra-2.2.5-bin.tar.gz | tar xz
- sed -i -e 's/INFO/WARN/g' dsc-cassandra-*/conf/logback.xml
- sudo dsc-cassandra-*/bin/cassandra
# install mysql schema
- mysql -uroot -e 'SET GLOBAL innodb_file_format=Barracuda'
- mysql -uroot -e 'create database if not exists zipkin'
- mysql -uroot -Dzipkin < zipkin-spanstores/jdbc/src/main/resources/mysql.sql
# TODO: To release, setup git config and run `./mvnw -s ./.settings.xml release:prepare` locally.
# Once tag-driven automation is setup, these parameters will be used by travis.
- 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
# Manually install elasticsearch until https://github.com/travis-ci/apt-source-whitelist/issues/190
- curl -SL https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.2.1/elasticsearch-2.2.1.tar.gz | tar xz
- elasticsearch-*/bin/elasticsearch -d > /dev/null
script:
# If we aren't a pull request, we are publishing either a snapshot or a release.
# We don't currently publish the benchmarks or interop modules, as they are test code only.
- '[ "${TRAVIS_BRANCH}" = master ] && [ "${TRAVIS_PULL_REQUEST}" != "false" ] || ./mvnw -s ./.settings.xml -Prelease -pl -:benchmarks,-:interop deploy -nsu'
# If we are on a pull request, don't build javadoc or source jars (release profile), and certainly don't deploy!
# We also add the MYSQL_USER so that these tests will be invoked.
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] || MYSQL_USER=root ./mvnw install -nsu'
# 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: "HOptDMElLTHxuze2derex2ljpkZCJmlmod6Z5tIUDgQsJ+nmku2FAZ5Pxt66G4i9zrj3oIhNJ5HXDF04Hlm7DzfjKBvZXzzyusITyEf6TijOHsVD9o4ngcTnmVw7aP9Rd1Kh+FQPLpcxV8PbB0+BTmcFkQMxpjS/EgXYMDtv7Tcg+ALnGlVNHtf3EhwpxsCv5HBOp9+gw7Wta9aFCLWPySZUh/lf7WCHNnI48tBjujICQsuIp/A9RSHbFt1t0JbM99CT+Vei0gUSdIVKbQf4UcOl8uPty3nKyPc8P/4LDIxfX4acjy4jj7S2LUO77xVSMvisnHoQ/R0P3kmgl96avEtRIlC4Y4TV4PcYs8dmzX55T9zBQGVyt9IPK51XxKkZUQMlwduN5TvhHdkXW/bVELDGEZvFlhMpIjCdHZLcysVk+he+tnCo0Iv3nfVeLVCQ4qPLsumQy+Zl3l52hjvzcgdVrEwkZCl6kIfrkkLK2+srkPjoAK38uZhxEroSNgWGblCggbt/sNaqR2Z8yHT+uMlPSfOyADPr2Eufx0AgoWgFPvLO9a1nLNs5efMG3PFBFQSoBnCaOnrQ7j5NriKH0vWpuw6JpvTfl75VJ+PVb7qoDPOGCELgDJaL3Z8Uvb0CRbIo31/2JnY1m3gmQszUJNX2ej6oYCvWKrQW25b9+YI="
# Ex. travis encrypt BINTRAY_KEY=xxx-https://bintray.com/profile/edit-xxx --add
- secure: "frm0I/rFFwKAfk3qzvebmSq2IQJt9l456AolnqX2biiOukDAVPNtT5kmXoPwfwemCjebXCO3Z3quPLXfsA2ZVah1WoeY8ICuTzGepg+E2FosOvl4/X5eCoNReyUG6nAqT/iNoQTCnSSDzFwh6+TciA7GPhftyBIFL8bohGscUWmtBYr/yha3LKE1weA3ahu4Kn4dswgkDtaD2fl4BsQVR2hsIQQxYOfpozspatJJtRuiVJne4f0rNdBdiQxinDh4d3B6yLjsGSFgIZ8G2dHVmlcyxmydmvX9pg30KulPM3r21qejt915k45rNRJN/IvVzGbLEaBCGIVvMS+S23Ih/Qfan41fFDekETV9bHo8IuZhxopNas/lymzA+YiXd3sId1kh8pifHBVdefrGP/5FL0bmsLOvwmY8h/hDOArTZgDgkFVaZP2NA0+W2YqlqY4JGwR/I/Jb0gDKFVOI9ScZCHCa0b7fQhWYOJry9PCmVIDv8nzByAjVncPxUEvj/hpQCG/R8D3ibFp4yLyARDWks/TF3VuiIbm/yhGg1/8p4lmx3Fj0ZvumU5x+deSVpzJK2TBVAfSTNbgsLFiLSMFSmKYK+r5vxRKoUPKFVx68VI4UQmibinNG9RE6Q0F/S0FnZnyPSEekt7os9Q9KoIovhMGii1WVSuB1Um1iypkt7zc="
# Ex. travis encrypt GH_USER_EMAIL=for_github@domain.com --add
- secure: "dMZHXaLDOYZsDeKECqvukrKK9ToAiHiZWgwBueVG9MYcI/LP56PEB5KS64iCh1AUBqp8xcSaf41xP7hl/9Jl2PLok6XFob2FathGFJnyaMr4m9EUAiq3bN9sYorS7XGQ/ZfMJiAOM9ipzogQGY1gMDWsa5kCZu0qIwmXpxnpUp9E35l0KPKScLY5O6y/Pi8wfLMu0fWtyAxGDQIkUWqSQWaz5yNS2aPK8tOJFm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j98oKLPuhXBwl60bEEFsx0+TyI4tcwPXS8+PuWHUzewmcFHzUVIK7hclRMHdbdY6L0/C42VoVvkp+FEl5Ycihi4O6uLnv3I4Z42lH8="
# Ex. travis encrypt GH_TOKEN=XXX-https://github.com/settings/tokens-XXX --add
- secure: "Iu7X1ePNpk6rbIse4P2EFu9f8I8mVMjZqFXaoIiosNuOh2V3VsyKWb/+m0oQdUPquzw5N9POjbhERE2ICAI+9o4Zkb4rjXXLHhvAEvvy9NLpH9dB2/AsMxWXha/UHmCHwq4z9qSWsOA0G0kx2FzTbUUN4PKQQjIWrUInbZpjWdIZhDVRpp2j5ZIYFrn0DS9piYIWJgfwdkCSq0c8Gpd5XxxHik/Fkb4W/UfRCM1gCNB/eagqiATyd7Eg8WnKp1lVwdipbrre7nosT2hcIILdyAnsbwd0ByMGIBnzJcFf/ITnSQQEZqRLP0401ZWmwSniSbpxvwi+jc2YVfTXqRF6GvEMWVx0b8QJoMlsQDXqv04ZpHPU2lQu2pUca4vM42KYYjNfVI91w5EgEkQEUZzBQs+zaRoT3kwpIehUHlNZNu7+uKKt3iapZ6oVSpa5i+4YDYMC92I0smRAq662xjmGusZFYwPXA9+f5Qa2XtxJnYmxBir1kq+I2Tdiy8mM7tKSbog/S7oKtS4M5znNd4ygp3ikzCHw/oZvZxjYO8S+2ds8XrzP9F0EWHOtiwwmRcH6QBjlC/I+lf1CbLIfJwPCHeqSIUZFqbwWdJ7LJsRBzFY48yfvtSDe4kYaeXrESc7KtYtqMhjzEUFt3+Md061yJZmVvz0wn3G/wUAQEbwyvZI="
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/637e968b45032d16ee26
on_success: change
on_failure: always
on_start: false