forked from akka/alpakka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
183 lines (166 loc) · 7.35 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
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: ./scripts/travis.sh
jobs:
include:
- stage: check
script: sbt verifyCodeStyle
name: "Code style check. Run locally with: sbt verifyCodeStyle"
- env: CMD="++2.11.12 Test/compile"
name: "Compile all code with Scala 2.11"
if: type != cron
- env: CMD="++2.12.10 Test/compile"
name: "Compile all code with Scala 2.12 and fatal warnings enabled. Run locally with: env CI=true sbt ++2.12.10 Test/compile"
- env: CMD="++2.13.1 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
name: amqp
env:
- PRE_CMD="docker-compose up -d amqp"
- name: avroparquet
- name: awslambda
- name: azure-storage-queue
- name: cassandra
env:
- PRE_CMD="docker-compose up -d cassandra"
- name: couchbase
env:
- PRE_CMD="docker-compose up -d couchbase_prep"
- name: csv
- name: dynamodb
env:
- PRE_CMD="docker-compose up -d dynamodb"
- name: elasticsearch
- name: file
- name: ftp
env:
- PRE_CMD="docker-compose up -d ftp sftp squid"
- name: geode
env:
- PRE_CMD="docker-compose up -d geode"
- name: google-cloud-pub-sub
- name: google-cloud-pub-sub-grpc
env:
- PRE_CMD="docker-compose up -d gcloud-pubsub-emulator_prep"
- name: google-cloud-storage
- name: google-fcm
# hbase disabled until we resolve why new docker image fails our build: https://github.com/akka/alpakka/issues/2185
# - name: hbase
# env:
# - PRE_CMD="docker-compose up -d hbase"
- name: hdfs
- name: influxdb
env:
- PRE_CMD="docker-compose up -d influxdb"
- name: ironmq
env:
- PRE_CMD="docker-compose up -d ironauth ironmq"
- name: jms
env:
- PRE_CMD="docker-compose up -d ibmmq"
- name: json-streaming
- name: kinesis
- name: kudu
env:
- PRE_CMD="docker-compose up -d kudu-master-data kudu-tserver-data kudu-master kudu-tserver"
- name: mongodb
env:
- PRE_CMD="docker-compose up -d mongo"
- name: mqtt
env:
- PRE_CMD="docker-compose up -d mqtt"
- name: mqtt-streaming
env:
- PRE_CMD="docker-compose up -d mqtt"
- name: orientdb
env:
- PRE_CMD="docker-compose up -d orientdb"
- name: pravega
env:
- PRE_CMD="docker-compose up -d pravega"
- name: reference
- name: s3
env:
- PRE_CMD="docker-compose up -d minio_prep"
- name: spring-web
- name: simple-codecs
- name: slick
- name: sns
env:
- PRE_CMD="docker-compose up -d amazonsns"
- name: solr
- name: sqs
env:
- PRE_CMD="docker-compose up -d elasticmq"
- name: sse
- name: text
- name: udp
- name: unix-domain-socket
- name: xml
- stage: whitesource
script: git branch -f "$TRAVIS_BRANCH" && git checkout "$TRAVIS_BRANCH" && sbt whitesourceCheckPolicies whitesourceUpdate whitesourceSupported/whitesourceUpdate
- stage: publish
name: "Publish artifacts for Scala 2.11.12"
env: CMD="++2.11.12 publish"
- name: "Publish artifacts for Scala 2.12.10"
env: CMD="++2.12.10 publish"
- name: "Publish artifacts for Scala 2.13.1"
env: CMD="++2.13.1 publish"
- 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/.cache/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+3VNXRPPxifFw9TlTdU7GrmEZe6b2Apymy0gTXBntAqWHyA8/qhaqms8sZmxafAdx+YzHMbSkKnORY92jSPJ43hINSRBwotmL0GXzIpIM0wm2qKkW7+BAGi728wuotnS5NFudlm2w5nbIY8rQ+pP5/U5Ur3KFEpQ6cvW4u6jLFB3WxyOI0NSVWsplcq38SxrCyJxyh2mGXVMSWqDX0rj5gFGk2lnjZGRE1IN5CFgiHgW858K7IoTBAwuCLpeDnEaUBti3WUTOew56mbuEixawX+zGyD5Y2mhiGxXZ1HmeIdFT9W0O2jriFWo7t7NR/MSsIg3xh6WdfBCwhklZbrSXMrlA5Hm1JMriYyo="
# encrypt with: travis encrypt BINTRAY_PASS=...
- secure: "kra9cxN+5Ya6CEtEs1ry94uGOHDhVoQmJs7B700Jk4qYXu3tdPPDVt4lNheQvu/TGoTRDZecHymC526eiZTcJh7/87CAC2SYu+YW7lMP3NBcHaqnxuSWzXVNyiRjgCEWAy/pcDhGkJwL6LgNg5Vho09bV62SuySYZQ8K1QBeKIks0oZrYVIXqXborYfZ+FzSvVoOEOoEp5V1Uv98deTcfDzsqtLOXker0t6iLPIYAJA7vpNGfWk6aRqa3W1I73ojhVvcL5BqB6RK95meEJfaqclftObmp4m0aWNQujHzQIydw22rF9Sc7PAy67p2Pf28KLZPEuZYAx5KWeAYwO5rblqgvDR5hR1CqrACscl1FSpFFQMrAig+dLgHdOOAzBMGu1qqQPv/Muj2Mm4MXn7NLRdaxSRQbq4LleqUpADjEXP+LGkLjFwFHGsgNa3dNppSoeO1gvBBl4YcOCdAM8Io89M7VR7SOE3BVxDYwSJruqLcm/8nQ35CHigOm+HT03jNwY7ypgUPreHpJ5d9qFz+uRwSBSnHsHNampiydRVOjH8x0+UEPlzQ4/nYjHTJAk0Ru1CEDaUg5OFqOqdzPaplS4Yg2zpAJTSgVxh5Yr+O3KGTyapSX6wXP3LY728L1g3H0VNFGQ67TEVkXVO62rlw+1jltXLLxnp7/UhWFn02f04="
branches:
only:
- master
# allow release tags
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/