forked from akka/alpakka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
200 lines (184 loc) · 7.79 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
language: scala
sudo: false
services:
- docker
before_install:
# make comparing to origin/master work and fetch full history for correct current and previous version detection
- git remote set-branches --add origin master && git fetch --unshallow
# default script for jobs, that do not have any specified
script:
- |
[ "$TRAVIS_EVENT_TYPE" == "cron" ] && JDK="adopt@~1.11.0-2" || JDK="adopt@~1.8.202-08"
- ./scripts/buildChanged.sh ${DIR:=.} "$JDK" "${PRE_CMD:=echo NOOP}" "${CMD:=+$DIR/testChanged}"
jobs:
include:
- stage: check
script: sbt scalafmtCheckAll || { echo "[error] Unformatted code found. Please run 'scalafmtAll' and commit the reformatted code."; false; }
name: "Code style check (fixed with `sbt scalafmtAll`)"
- script: sbt scalafmtSbtCheck || { echo "[error] Unformatted sbt code found. Please run 'scalafmtSbt' and commit the reformatted code."; false; }
name: "Build code style check (fixed with `sbt scalafmtSbt`)"
- env: CMD="++2.11.12 Test/compile"
name: "Compile all code with Scala 2.11"
if: type != cron
- env: CMD="++2.12.9 Test/compile"
name: "Compile all code with Scala 2.12 and fatal warnings enabled. Run locally with: env CI=true sbt ++2.12.9 Test/compile"
- env: CMD="++2.13.0 Test/compile"
name: "Compile all code with Scala 2.13"
- env: CMD="unidoc"
name: "Create all API docs"
- env: CMD="docs/paradox"
name: "Create site with Paradox"
- env: CMD="mimaReportBinaryIssues"
name: "Check binary compatibility (MiMa)"
- stage: test
env:
- DIR=amqp
- PRE_CMD="docker-compose up -d amqp"
- env:
- DIR=avroparquet
- env:
- DIR=awslambda
- env:
- DIR=azure-storage-queue
- env:
- DIR=cassandra
- PRE_CMD="docker-compose up -d cassandra"
- env:
- DIR=couchbase
- PRE_CMD="docker-compose up -d couchbase_prep"
- env:
- DIR=csv
- env:
- DIR=dynamodb
- PRE_CMD="docker-compose up -d dynamodb"
- env:
- DIR=elasticsearch
- env:
- DIR=file
- env:
- DIR=ftp
- PRE_CMD="docker-compose up -d ftp sftp squid"
- env:
- DIR=geode
- PRE_CMD="docker-compose up -d geode"
- env:
- DIR=google-cloud-pub-sub
- env:
- DIR=google-cloud-pub-sub-grpc
- PRE_CMD="docker-compose up -d gcloud-pubsub-emulator_prep"
- env:
- DIR=google-cloud-storage
- env:
- DIR=google-fcm
- env:
- DIR=hbase
- PRE_CMD="docker-compose up -d hbase"
- env:
- DIR=hdfs
- env:
- DIR=influxdb
- PRE_CMD="docker-compose up -d influxdb"
- env:
- DIR=ironmq
- PRE_CMD="docker-compose up -d ironauth ironmq"
- env:
- DIR=jms
- PRE_CMD="docker-compose up -d ibmmq"
- env:
- DIR=json-streaming
- env:
- DIR=kinesis
- env:
- DIR=kudu
- PRE_CMD="docker-compose up -d kudu-master-data kudu-tserver-data kudu-master kudu-tserver"
- env:
- DIR=mongodb
- PRE_CMD="docker-compose up -d mongo"
- env:
- DIR=mqtt
- PRE_CMD="docker-compose up -d mqtt"
- env:
- DIR=mqtt-streaming
- PRE_CMD="docker-compose up -d mqtt"
- env:
- DIR=orientdb
- PRE_CMD="docker-compose up -d orientdb"
- env:
- DIR=reference
- env:
- DIR=s3
- PRE_CMD="docker-compose up -d minio_prep"
- env:
- DIR=spring-web
- env:
- DIR=simple-codecs
- env:
- DIR=slick
- env:
- DIR=sns
- PRE_CMD="docker-compose up -d amazonsns"
- env:
- DIR=solr
- env:
- DIR=sqs
- PRE_CMD="docker-compose up -d elasticmq"
- env:
- DIR=sse
- env:
- DIR=text
- env:
- DIR=udp
- env:
- DIR=unix-domain-socket
- env:
- DIR=xml
- stage: whitesource
script: git branch -f "$TRAVIS_BRANCH" && git checkout "$TRAVIS_BRANCH" && sbt whitesourceCheckPolicies whitesourceUpdate whitesourceSupported/whitesourceUpdate
- stage: publish
env: CMD="++2.11.12 publish"
name: "Publish artifacts for Scala 2.11.12"
- env: CMD="++2.12.9 publish"
name: "Publish artifacts for Scala 2.12.9"
- env: CMD="++2.13.0 publish"
name: "Publish artifacts for Scala 2.13.0"
- script: openssl aes-256-cbc -K $encrypted_bbf1dc4f2a07_key -iv $encrypted_bbf1dc4f2a07_iv -in .travis/travis_alpakka_rsa.enc -out .travis/id_rsa -d && eval "$(ssh-agent -s)" && chmod 600 .travis/id_rsa && ssh-add .travis/id_rsa && sbt -jvm-opts .jvmopts-travis docs/publishRsync
name: "Publish API and reference documentation"
stages:
# runs on master commits and PRs
- name: check
if: NOT tag =~ ^v
# runs on master commits and PRs
- name: test
if: NOT tag =~ ^v
# runs on main repo master commits or version-tagged commits
- name: whitesource
if: repo = akka/alpakka AND ( ( branch = master AND type = push ) OR tag =~ ^v )
# runs on main repo master commits or version-tagged commits
- name: publish
if: repo = akka/alpakka AND ( ( branch = master AND type = push ) OR tag =~ ^v )
after_failure:
- docker-compose logs
- find . -name "*.log" -exec ./scripts/cat-log.sh {} \;
before_cache:
- find $HOME/.ivy2 -name "ivydata-*.properties" -print -delete
- find $HOME/.sbt -name "*.lock" -print -delete
cache:
directories:
- $HOME/.coursier
- $HOME/.ivy2/cache
- $HOME/.sbt/boot
- $HOME/.sbt/launchers
- $HOME/.jabba/jdk
timeout: 900
addons:
hosts:
# to run tests locally, these hostnames need to resolve to localhost IP
- hbase
env:
global:
# encrypt with: travis encrypt WHITESOURCE_PASSWORD=...
- secure: "VpRSxeqP6gXCxnYCsjylMt1xxXxI/hlj6msibKuHpstDnfPkbDMS8RnRJ/39tyjx/szELZSzAllV0VpM27JpTXlKfIT/78ZUGcljqzfnmv3uh/dWh9k2ERQX1Hr3TGFFyljIbEKHcHjvgHBJtlIRGIuvoBv0tJ98pcqS6dCeplaaJa1Ya7Q53u17GOJakhvTjrT3ASz8gF1kV4GN9XhQCUjRfQSINiT+QC+ONoHy6ztZPIDgfUskBfKgZU5P1saDLcBjzBkXDWIwbKubfJGBl3DSs2fHaWNJE5CRZNJ64Wi8Hs006zvyomIaCfbVAWtxOiLCdXxlys/YQs43RRB0pBqyvTpxH4lEwnLR5uGDH+nuBQw9efCWqsM3CDsRSH7iobjBlunKgDCfjua5/dWJ3Wm2j8WOi6C6/y/YrGwU/DrncukRtcyKj92Mu3LHk5HEMiOiIA41P2NTqalvjvoqi1zMQ5On2g55e2YMcHmQ8dCsRAgegCYB3a6GyGq7T8zkuMMljpmpQJwayrJPQKi001d3ajZZwMLcv4YW9ndVYCZD9ducZ448Uo5BCpJFDPPG+xcXrvZowCUA9JtpnyXrTcTLvFITG2egXyLOQfZ0/FX9XneMtX8qX8ysHaBX9tWiYsplo/WfbpBHy935Ag8WnGH0cYvOXuqAKKUXRVq9ANI="
# encrypt with: travis encrypt BINTRAY_USER=...
- secure: "hnaw+GZ6kwf2TaJrdw7CMzt61Kh3gW0DVswrk0dFWvwEZkoXmjmdEOOITu/zucI9KfRZPV3fCwkYGhZKgstquW7vB8OfueLBUOZyNtx51oTCAlUztx1pKHjm5r3yDU+oO5RSaovH0qcV5dsJq0Gu7b+HWesohWSAproZsiu69oCRFqgNctNAwrZvqL8e+mXiSuKnRWcLQUof5MSgKcYdZ029muGlbh7fhjS9zewfURIROgVEXixCgYvBuhWcyNPzl8rhzxbXuvUx6BZ9bR0msl5imG4MNy/PfYw/xYDtrelPiVWMuHcjNQq5xyvQTj1W5M4Mn2R+3VNXR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