forked from akka/alpakka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
136 lines (119 loc) · 6.75 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
language: scala
sudo: false
jdk: oraclejdk8
services:
- docker
before_install:
# make comparing to origin/master work
- git remote set-branches --add origin master && git fetch
# default script for jobs, that do not have any specified
script:
- ${PRE_CMD:=return 0} # do nothing if not set
- sbt -jvm-opts .jvmopts-travis "$CMD"
jobs:
include:
- stage: check
script: sbt scalafmtCheck || { echo "[error] Unformatted code found. Please run 'Test/compile' and commit the reformatted code."; false; }
name: "Code style check"
- script: sbt scalafmtSbtCheck || { echo "[error] Unformatted sbt code found. Please run 'scalafmtSbt' and commit the reformatted code."; false; }
name: "Build code style check"
- env: CMD="Test/compile"
- env: CMD="unidoc"
- env: CMD="docs/paradox"
- stage: test
env:
- PRE_CMD="docker-compose up -d amqp"
- CMD=+amqp/testChanged
- env: CMD=+awslambda/testChanged
- env: CMD=+azure-storage-queue/testChanged
- env:
- PRE_CMD="docker-compose up -d cassandra"
- CMD=+cassandra/testChanged
- env: CMD=+csv/testChanged
- env:
- PRE_CMD="docker-compose up -d dynamodb"
- CMD=+dynamodb/testChanged
- env: CMD=+elasticsearch/testChanged
- env: CMD=+file/testChanged
- env: CMD=+ftp/testChanged
- env:
- PRE_CMD="docker-compose up -d geode"
- CMD=+geode/testChanged
- env: CMD=+google-cloud-pub-sub/testChanged
- env: CMD=+google-fcm/testChanged
- env: CMD=+hbase/testChanged
- env: CMD=+hdfs/testChanged
- env:
- PRE_CMD="docker-compose up -d ironauth ironmq"
- CMD=+ironmq/testChanged
- env: CMD=+jms/testChanged
- env: CMD=+json-streaming/testChanged
- env: CMD=+kinesis/testChanged
- env:
- PRE_CMD="docker-compose up -d kudu-master-data kudu-tserver-data kudu-master kudu-tserver"
- CMD=+kudu/testChanged
- env:
- PRE_CMD="docker-compose up -d mongo"
- CMD=+mongodb/testChanged
- env:
- PRE_CMD="docker-compose up -d mqtt"
- CMD=+mqtt/testChanged
- env:
- PRE_CMD="docker-compose up -d orientdb"
- CMD=+orientdb/testChanged
- env: CMD=+reference/testChanged
- env: CMD=+s3/testChanged
- env: CMD=+spring-web/testChanged
- env: CMD=+simple-codecs/testChanged
- env: CMD=+slick/testChanged
- env: CMD=+sns/testChanged
- env: CMD=+solr/testChanged
- env: CMD=+sqs/testChanged
- env: CMD=+sse/testChanged
- env: CMD=+text/testChanged
- env: CMD=+udp/testChanged
- env: CMD=+unix-domain-socket/testChanged
- env: CMD=+xml/testChanged
- stage: whitesource
script: sbt whitesourceCheckPolicies whitesourceUpdate
- stage: publish
script: sbt -jvm-opts .jvmopts-travis +publish
- stage: techhub-ping
script: curl -I https://ci.lightbend.com/job/techhub-publisher/build?token=$TECH_HUB_TOKEN
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 )
# runs on main repo version-tagged commits
- name: techhub-ping
if: repo = akka/alpakka AND 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/.ivy2/cache
- $HOME/.sbt/boot
timeout: 900
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: "DLc1v2XMWrxtbPzVfoArkSQiwzT+O7/rwT7APqoA68K5A1pwxDw5BD3sOLpd6rKbPBulmwDAAQ1am3uE6lbmymCTMe8bvA3iHWy0Jg8baK4nC46EKFLabQz4Uaoq/bs92YGW1QH12rbBPyTA7uvPpvhmb8uyUbJqjT3uyROqHhHfhll89dsPVaK0NCY9DN2K356M87z7cp1SvtfAiF8qaNjNmlOfWjIEUSO1SiiqQBjT/GJvhrrW32J4htf5CqEEYBSoN+fqTCwwdo3GpOFFq+Zh5TSoyv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