forked from twitter/finagle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
77 lines (66 loc) · 2.32 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
dist: trusty
sudo: required
language: scala
git:
depth: 3
quiet: true
env:
global:
- JAVA_OPTS="-DSKIP_FLAKY=1 -DSKIP_FLAKY_TRAVIS=1 -Dsbt.log.noformat=true"
matrix:
- PROJECT=finagle-core
- PROJECT=finagle-exception
- PROJECT=finagle-exp
- PROJECT=finagle-grpc-context
- PROJECT=finagle-http
- PROJECT=finagle-http2
- PROJECT=finagle-integration
- PROJECT=finagle-mux
- PROJECT=finagle-mysql
- PROJECT=finagle-netty4
- PROJECT=finagle-netty4-http
- PROJECT=finagle-netty3
- PROJECT=finagle-opencensus-tracing
- PROJECT=finagle-redis
- PROJECT=finagle-serversets
- PROJECT=finagle-stats
- PROJECT=finagle-stats-core
- PROJECT=finagle-thrift
- PROJECT=finagle-thriftmux
- PROJECT=finagle-toggle
- PROJECT=finagle-tunable
- PROJECT=finagle-zipkin-core
- PROJECT=finagle-zipkin-scribe
# These directories are cached to S3 at the end of the build
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.ivy2/local/com.twitter
- $HOME/.sbt
- $HOME/.dodo
before_cache:
# Cleanup the cached directories to avoid unnecessary cache updates
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -delete
- find $HOME/.sbt -name "*.lock" -delete
scala:
- 2.11.12
- 2.12.8
jdk:
- oraclejdk8
notifications:
slack:
secure: PfUgPphNmKcZLIjTjd46IHBzqB0vkzK8clCqdsUr5taJRHhMSgRg8ks81sUhCmu+hTl3FG+jEzGgqMUvcisS+OziP/8QR/C41f5jdaETfkBE53DZIWVXZ80QRabphRTCbRUfibC39WWrhhLgWCIqzvTM8qsO/43JuQOGLQbuqcs=
on_failure: change
on_success: change
before_script:
- unset SBT_OPTS # default $SBT_OPTS is irrelevant to sbt launcher
# note: this is not ideal to run before every job in the matrix but is the only way that works consistently
- curl -s https://raw.githubusercontent.com/twitter/dodo/develop/bin/build | bash -s -- --no-test --scala-version $TRAVIS_SCALA_VERSION finagle
- travis_retry ./sbt --error ++$TRAVIS_SCALA_VERSION ci:update finagle-memcached/update
# don't test these projects because they require a running memcached instance
- ./sbt ++$TRAVIS_SCALA_VERSION finagle-memcached/test:compile
script:
- travis_retry ./sbt ++$TRAVIS_SCALA_VERSION coverage "$PROJECT/test" coverageReport
after_success:
- ./sbt ++$TRAVIS_SCALA_VERSION coverageAggregate
- bash <(curl -s https://codecov.io/bash)