This repository has been archived by the owner on Aug 29, 2024. It is now read-only.
forked from akka/alpakka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
212 lines (193 loc) · 8.52 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
201
202
203
204
205
206
207
208
209
210
211
212
language: scala
services:
- docker
# make comparing to origin/master work and fetch full history for correct current and previous version detection
git:
depth: 500
addons:
hosts:
# to run tests locally, these hostnames need to resolve to localhost IP
- hbase
apt:
sources:
# Official debian package for AdoptOpenJDK from https://adoptopenjdk.net/installation.html#linux-pkg
- sourceline: deb https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ xenial main
key_url: https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public
packages:
- adoptopenjdk-8-hotspot
before_install:
- whereis java
# build, test and release using JDK 8 to make sure alpakka works with it
- export JAVA_HOME=/usr/lib/jvm/adoptopenjdk-8-hotspot-amd64
- export PATH=/usr/lib/jvm/adoptopenjdk-8-hotspot-amd64/bin:$PATH
- java -version
# default script for jobs, that do not have any specified
script: ./scripts/travis.sh
jobs:
include:
- stage: drop-travis-caches
script:
- rm -rf $HOME/.cache/coursier
- rm -rf $HOME/.ivy2/cache
- rm -rf $HOME/.sbt
- rm -rf $HOME/.jabba
name: "drop-travis-caches"
- stage: check
env: CMD="verifyCodeStyle; mimaReportBinaryIssues"
name: "Code style check and MiMa. Run locally with: sbt verifyCodeStyle; mimaReportBinaryIssues"
if: type != cron
- env: CMD="++2.13.8 Test/compile"
name: "Compile all code with Scala 2.13 and fatal warnings enabled. Run locally with: env CI=true sbt ++2.13.8 Test/compile"
- env: CMD="unidoc; docs/paradox"
name: "Create all API docs and create site with Paradox"
- stage: test
name: amqp
env:
- PRE_CMD="docker-compose up -d amqp"
- name: avroparquet
- name: awslambda
- name: aws-event-bridge
env:
- PRE_CMD="docker-compose up -d amazoneventbridge"
- 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
env:
- PRE_CMD="docker-compose up -d elasticsearch6 elasticsearch7"
- 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-bigquery
- name: google-cloud-bigquery-storage
- name: google-cloud-pub-sub
env:
- PRE_CMD="docker-compose up -d gcloud-pubsub-emulator_prep"
- name: google-cloud-pub-sub-grpc
env:
- PRE_CMD="docker-compose up -d gcloud-pubsub-emulator_prep"
- name: google-cloud-storage
- name: google-common
- 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
env:
- PRE_CMD="file /home/travis/.cache/coursier/v1/https/repo1.maven.org/maven2/org/typelevel/cats-kernel_2.13/2.0.0/cats-kernel_2.13-2.0.0.jar"
- name: huawei-push-kit
- 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: licenses
script: echo "License checking is temporarily disabled"
- name: "Publish artifacts for Scala 2.13"
env: CMD="ci-release"
script: openssl aes-256-cbc -K $encrypted_74014e1c3c6a_key -iv $encrypted_74014e1c3c6a_iv -in .travis/travis_gpg_secret.enc -out .travis/travis_gpg_secret.gpg -d && export PGP_SECRET=$(cat .travis/travis_gpg_secret.gpg) && ./scripts/travis.sh
- 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:
- name: drop-travis-caches
# to drop caches trigger a custom build with
# env:
# global:
# - RUN_DROP_TRAVIS_CACHES_STAGE=true
if: env(RUN_DROP_TRAVIS_CACHES_STAGE) = true
# 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: licenses
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
- $HOME/.jabba
timeout: 900
env:
global:
- RUN_DROP_TRAVIS_CACHES_STAGE=true
# encrypt with: travis encrypt SONATYPE_USERNAME=...
- secure: "b2zZTu9oo5fpP9GFDBzR/kpFEvTJW7GfSpu4ceqEEB2/Cr3npSPfHCplsYCmI8nXCg+XHkcd1pE3/K7z7DQtg9rHqR7mGBdOn2/YQ+myOZhZdUceomg11tFNZZW91qDRo1vWqZ7GSgkkDIuK42JCOhDaUBOdCN6LVQZypHvzL2VIkXemRgedmBS+2GEkAofIyi4Ny8ZiCtkUb+H7XSdvxyG76/XfPXAdNZuI0sEGByEGeTgEQzgmOxjgA+qsiyzPJXDz0A7qWRGlMlqJ2UQS4OVP0Stsc+c/fd15qA9LIprot2ujmwuY3athvxqeag0OorI7CnMeLJyao1ZnljUEAyPW4irWGe/z1yByOfpu7TPOJh55GJTqAoD1IPpsAfOuNCgJ2R6+TIUx8H90TTsLonRDps575D/W/psp3L4kZGYfry4FNGbPbyNPndUOuAY1f7P7Lpzx6d7RHdtI5SvGOskSWvJ3v5rUjiRdGfXfvsugSyCOfnAY4mK/wYbGlfS2Hxi/58wZOGo7HkUnaj4akOeRcqEn552s6GpE5X9bqO4EZf6BCRrcStFTm0V7wk7zYtQwc2qpy0evcFpV59R2yPPvx1HUF0GbVR0jbxeTcwpzHwJSRsHg6W2YTJG+RwDs6FU1HsnXFSJcB7o0UotHk2qZwUbTfQHozpOBBHoVQp4="
# encrypt with: travis encrypt SONATYPE_PASSWORD=...
- secure: "BZu3r19aSY/AiHpeu1Plw4Ryt1NIW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lxglwYFz4opTJTPWwGqX48H7qgDS10taIfm4HyKC+Nf1hYho5uFoWuqvg0Q90VEkHbcvvvUqwygVJisQC7HcRFYE9XBk1RozF3QaNY6M/ZN0Qt8l8O6GpLj4GfDw+ySyIYPUUFy6388AtH6ziXzpCgVynC0eqymfLlNSslF/uhMIiY5ASVFVbXKQs3W2Rsg3FqX06U48Ln7lBsbELD1tOm6YbYB1ix+/iqkkrkhhO4z1nBPNrYhBv1RYjnx5F/RiWiJzElTyurv3fkyPKzcmM1emRbcy1RG1zVi7xVUu6zLqIm4="
branches:
only:
- master
- release-3.0
# allow release tags
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/