forked from zalando/nakadi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdelivery.yaml
41 lines (41 loc) · 1.37 KB
/
delivery.yaml
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
version: "2017-09-20"
pipeline:
- id: test
overlay: ci/java11
type: script
vm: critical-large
commands:
- desc: Checkstyle
cmd: |
./gradlew checkstyle --stacktrace
- desc: Test
cmd: |
./gradlew test --stacktrace
- id: acceptance-test
overlay: ci/java11
type: script
vm: critical-large
commands:
- desc: Install dependencies
cmd: |
sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
echo '04216d65ce0cd3c27223eab035abfeb20a8bef20259398e3b9d9aa8de633286d */usr/local/bin/docker-compose' | sha256sum -c
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
- desc: Acceptance Test
cmd: |
./gradlew fullAcceptanceTest --stacktrace
- id: build-push
overlay: ci/java11
type: script
vm: critical-large
commands:
- desc: Build and push to repo
cmd: |
./gradlew clean app:bootJar
IMAGE="registry-write.opensource.zalan.do/aruha/nakadi-oss:${CDP_BUILD_VERSION}"
if [ "$CDP_PULL_REQUEST_NUMBER" ]; then
IMAGE="registry-write.opensource.zalan.do/aruha/nakadi-oss-pr:${CDP_BUILD_VERSION}"
fi
docker build -t ${IMAGE} .
docker push ${IMAGE}