-
Notifications
You must be signed in to change notification settings - Fork 65
/
.travis.yml
57 lines (46 loc) · 2.78 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
dist: trusty
sudo: required
services:
- docker
language: java
env:
global:
- DOCKER_COMPOSE_VERSION=1.8.0
- COMMIT=${TRAVIS_COMMIT::8}
# DOCKER_PASS
- secure: bJKEmU7ykISQ1/OMoTwapQ6ia+yNq9XyB2Ten//Fh54tbGJasYkV0HcdcUGM6JXaOfQKJrlQQj/6iAsviE0057DvSZ8HGnJv3qm+wXkVmyVZE2fBpokdqNxCFC67ztP2JWj5XGVOdJF6bxfpCOmNNlayW0matiiRgnJs8WpTJvH7LOGo1K0IbRZGriITwQJAhoGIj8/bHiW+HNyNYmUpTwzj8BBsuxtcVsNXL7AKdS1JiMLtzEBRwUzsCsWFkMlaEDAP9+zX2yi8Nm4LIl2z/SIpD0gyxhsHlrx2HyyrZh1KJTqStxHipYPVw2FHirLnVmI3ttgaAUhb7u+c9muv83EWVlgK6hG1gAWhVnbEQryFYG7EMl2/YZ6Au6RXCJ7DH3k+DEQNUAJng2/d4tz2FZDft7lX3Uz9BSDonth8cbLA5DVvdqPMJ8sQgjrDNTuabsOAQZIxttB3sX0J9tS17oSgRZVhHQM5quzPFQQZqRd8ssNRR8ncyuoXKuVFBIwEYsCjnTEganzh/9Pq7YS4w8MDljdlJbqSHOj7zPCwz8m4vD68ChDEae9jDNawWTwhnlwWeoX5zRUmLSCgcjd7xJMrQdoQir7OKJPWrJ38H5k07ejW4SX28u1WCS7TnMhfQQJG8Nz+bO06i3f9ZshCnVt56TWd9elWmJkhyme0B3o=
# DOCKER_USER
- secure: NZXCRnZypmJsMNfGnHMQ3ZHGmuiYTB+kf7b66v+mccguQSweDIb3pp3jpdo7syTqi4lZZk0R2KE+PXdcBgxGwd1XPZX+SXH99hx/yN84cfSRiXeAMlsksRQZrh6qqA8diXOjARnGyrmeHYgaj/Uh/fUXGRjB975P643HSCuReQ7OkY+EgcvhfaI4e4CuBoXxlYQbLvZoUQt9CH0kJVpLOXJOXLWEsklwsYDejDGLTMFV64cN5CPEHPWqbVxmzUN86PA5c8R3wQfalmq6KqgU7cugLxQf5OAFSDkc+PwGjQXFei/sDvrMR1vrIvjX8vERgd41Lb8NqgRtN1C26PnVkRmTLoEm4q/uDSb9FkAJcSnDmXgqBPz4K4FzCIBOSy3jK4X/oPZAabl3gB+XFLg1q/W6r56yVej9b2qoIs1oFT309t9DfXBP0WlJv9HQbFI5UMa5uqwNhq2jK8bek5QXPm2u+/8239RCSyTKZ2u4ujDqxsORpSn2yUhIundBzwJHBja3vVG/+IJdfAKaombtIy9Ks0hLNLyjr9Stbhu3ShpMOvYSnR7kRNn9BGsh19FQisvxk5mdnmr5duGAaJS8ikiwJKnVUwITFL/SjpgDepP8NcfLYydIK1yBTWUbVn0tSUci6BiiQs1rC/o5bjmeYFzn/tdvWg+AwoPtiFKFytU=
matrix:
include:
- jdk: openjdk7
env: CODECOV=true
- jdk: openjdk7
env: CROSSDOCK=true
# - jdk: oraclejdk8
cache:
directories:
- $HOME/.m2/repository
- $HOME/.m2/wrapper
before_install: # FIXME prefix $PATH with `build/travis/thrift` instead
- sudo rm -rf /usr/local/bin/thrift
- sudo cp build/travis/thrift /usr/local/bin/
install:
- make install_ci
script:
- make test_ci
before_cache:
- rm -rf $HOME/.m2/repository/com/uber/tchannel
after_failure:
- make crossdock_logs_ci
after_success:
- '[ "$CODECOV" == "true" ] && bash <(curl -s https://codecov.io/bash) || true'
- export REPO=tchannelhub/xdock-java
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
- export TAG=`if [ "$BRANCH" == "master" ]; then echo "latest"; else echo $BRANCH; fi`
- export DOCKER=$(if [ "$CROSSDOCK" == "true" ]; then echo docker; else echo true; fi)
- echo "$DOCKER_PASS" | $DOCKER login -u "$DOCKER_USER" --password-stdin
- $DOCKER build -f tchannel-crossdock/Dockerfile -t $REPO:$COMMIT tchannel-crossdock
- $DOCKER tag $REPO:$COMMIT $REPO:$TAG
- $DOCKER tag $REPO:$COMMIT $REPO:travis-$TRAVIS_BUILD_NUMBER
- $DOCKER push $REPO