forked from ballerina-attic/ballerina-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
235 lines (220 loc) · 8.36 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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
# Copyright (c) 2018, WSO2 Inc. (http://wso2.com) All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
services:
- mysql
script:
- MYSQL_CONNECTOR_VERSION=mysql-connector-java-5.1.45
- ACTIVEMQ_VERSION=apache-activemq-5.12.0
# Ballerina
- BALLERINA_VERSION="${VERSION:-0.981.2-SNAPSHOT}"
- echo -e "\033[36m${BALLERINA_VERSION}\033[m"
- DISTRIBUTION_NAME=ballerina-platform-$BALLERINA_VERSION
- echo -e "\033[36m${DISTRIBUTION_NAME}\033[m"
- DOWNLOAD_CHANNEL="${CHANNEL:-nightly}"
- echo -e "\033[36m${DOWNLOAD_CHANNEL}\033[m"
- DOWNLOAD_LOCATION="${URL:-https://product-dist.ballerina.io}"
- echo -e "\033[36m${DOWNLOAD_LOCATION}\033[m"
- echo -e "\033[36m$DOWNLOAD_LOCATION/$DOWNLOAD_CHANNEL/$BALLERINA_VERSION/$DISTRIBUTION_NAME.zip\033[m"
- wget $DOWNLOAD_LOCATION/$DOWNLOAD_CHANNEL/$BALLERINA_VERSION/$DISTRIBUTION_NAME.zip
- unzip -q $DISTRIBUTION_NAME.zip
- export PATH=$PATH:$(pwd)/$DISTRIBUTION_NAME/bin
- ballerina version
# JDBC
- wget http://dev.mysql.com/get/Downloads/Connector-J/$MYSQL_CONNECTOR_VERSION.tar.gz
- tar xzf $MYSQL_CONNECTOR_VERSION.tar.gz
- mv $MYSQL_CONNECTOR_VERSION/$MYSQL_CONNECTOR_VERSION-bin.jar $DISTRIBUTION_NAME/bre/lib
# ActiveMQ
- wget https://archive.apache.org/dist/activemq/5.12.0/$ACTIVEMQ_VERSION-bin.tar.gz
- tar xzf $ACTIVEMQ_VERSION-bin.tar.gz
- cp $ACTIVEMQ_VERSION/activemq-all-5.12.0.jar $DISTRIBUTION_NAME/bre/lib
- ./$ACTIVEMQ_VERSION/bin/activemq start
- cd examples
- ballerina init
- ballerina test abstract-objects
- ballerina test anonymous-functions
- ballerina test any-type
- ballerina test arrays
- ballerina test async
- ballerina test ballerina-to-swagger
- ballerina test base-path-and-path
- ballerina test basic-https-listener-client
- ballerina test byte-io
- ballerina test byte-type
- ballerina test cache
- ballerina test channels-correlation
- ballerina test channels-workers
- ballerina test character-io
- ballerina test check
- ballerina test client-generation
- ballerina test closures
- ballerina test constrained-json
- ballerina test content-based-routing
- ballerina test csv-io
- ballerina test data-io
- ballerina test date-time
- ballerina test different-payload-types
- ballerina test directory-listener
- ballerina test documentation
- ballerina test elvis-operator
- ballerina test error-handling
- ballerina test error-lifting
- ballerina test foreach
- ballerina test fork-join
- ballerina test fork-join-conditional-join
- ballerina test fork-join-variable-access
- ballerina test function-pointers
- ballerina test functional-iteration
- ballerina test functions
- ballerina test functions-as-entry-points
- ballerina test functions-with-defaultable-parameters
- ballerina test functions-with-rest-parameter
- ballerina test grpc-bidirectional-streaming
- ballerina test grpc-client-streaming
- ballerina test grpc-secured-unary
- ballerina test grpc-server-streaming
- ballerina test grpc-unary-blocking
- ballerina test grpc-unary-non-blocking
- ballerina test h2-client
- ballerina test header-based-routing
- ballerina test hello-world
- ballerina test hello-world-client
- ballerina test hello-world-parallel
- ballerina test hello-world-service
- ballerina test hello-world-streams
- ballerina test http-1.1-to-2.0-protocol-switch
- ballerina test http-2.0-server-push
- ballerina test http-100-continue
- ballerina test http-access-logs
- ballerina test http-caching-client
- ballerina test http-circuit-breaker
- ballerina test http-client-endpoint
- ballerina test http-cors
- ballerina test http-data-binding
- ballerina test http-disable-chunking
- ballerina test http-failover
- ballerina test http-filters
- ballerina test http-forwarded-extension
- ballerina test http-load-balancer
- ballerina test http-redirects
- ballerina test http-retry
- ballerina test http-streaming
- ballerina test http-to-websocket-upgrade
- ballerina test http-trace-logs
- ballerina test https-listener
- ballerina test identify-patterns
- ballerina test identify-trends
- ballerina test if-else
- ballerina test integer-ranges
- ballerina test jdbc-client-batch-update
- ballerina test jdbc-client-call-procedures
- ballerina test jdbc-client-crud-operations
- ballerina test jms-durable-topic-message-subscriber
- ballerina test jms-headers-and-properties
- ballerina test jms-queue-message-producer
- ballerina test jms-queue-message-receiver
- ballerina test jms-queue-message-receiver-with-client-acknowledgment
- ballerina test jms-simple-durable-topic-message-subscriber
- ballerina test jms-simple-queue-message-producer
- ballerina test jms-simple-queue-message-receiver
- ballerina test jms-simple-topic-message-producer
- ballerina test jms-simple-topic-message-subscriber
- ballerina test jms-synchronous-queue-message-receiver
- ballerina test jms-topic-message-producer
- ballerina test jms-topic-message-subscriber
- ballerina test join-multiple-streams
- ballerina test json
- ballerina test json-arrays
- ballerina test json-io
- ballerina test json-record-map-conversion
- ballerina test json-to-xml-conversion
- ballerina test lengthof
- ballerina test local-transactions
- ballerina test locks
- ballerina test log-api
- ballerina test maps
- ballerina test match
- ballerina test match-expression
- ballerina test math-functions
- ballerina test mb-simple-durable-topic-message-subscriber
- ballerina test mb-simple-queue-message-producer
- ballerina test mb-simple-queue-message-receiver
- ballerina test mb-simple-topic-message-publisher
- ballerina test mb-simple-topic-message-subscriber
- ballerina test mutual-ssl
- ballerina test mysql-client
- ballerina test nil-lifting
- ballerina test object-assignability
- ballerina test object-initializer
- ballerina test object-member-functions
- ballerina test objects
- ballerina test optional-type
- ballerina test packages
- ballerina test passthrough
- ballerina test query-path-matrix-param
- ballerina test record-io
- ballerina test records
- ballerina test request-with-multiparts
- ballerina test response-with-multiparts
- ballerina test restrict-by-media-type
- ballerina test secured-client-with-basic-auth
- ballerina test secured-client-with-jwt-auth
- ballerina test secured-client-with-oauth2
- ballerina test secured-service-with-basic-auth
- ballerina test secured-service-with-jwt
- ballerina test send-jms-message-to-http-endpoint
- ballerina test streams
- ballerina test string-template
- ballerina test strings
- ballerina test table
- ballerina test table-queries
- ballerina test task-appointment
- ballerina test task-timer
- ballerina test temporal-aggregations-and-windows
- ballerina test testerina-assertions
- ballerina test testerina-before-and-after-suite
- ballerina test testerina-before-and-after-test
- ballerina test testerina-before-each-test
- ballerina test testerina-data-driven-tests
- ballerina test testerina-group-tests
- ballerina test testerina-guarantee-test-execution-order
- ballerina test throw
- ballerina test tracing
- ballerina test transactional-queue-message-producer
- ballerina test transactions-distributed
- ballerina test try-catch-finally
- ballerina test tuple-type
- ballerina test type-conversion
- ballerina test union-type
- ballerina test values
- ballerina test var
- ballerina test variables
- ballerina test websocket-basic-sample
- ballerina test websocket-chat-application
- ballerina test websocket-proxy-server
- ballerina test websub-internal-hub-sample
- ballerina test websub-service-integration-sample
- ballerina test while
- ballerina test worker-interaction
- ballerina test workers
- ballerina test xa-transactions
- ballerina test xml
- ballerina test xml-attributes
- ballerina test xml-functions
- ballerina test xml-io
- ballerina test xml-literal
- ballerina test xml-namespaces
- ballerina test xml-to-json-conversion
- ballerina build config-api --skiptests
- ballerina test testerina-function-mocks/testerina_function_mocks.bal
# excluded packages proto-to-ballerina,swagger-to-ballerina,taint-checking,websub-hub-client-sample,websub-remote-hub-sample,counter-metrics,gauge-metrics