This repository has been archived by the owner on Mar 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
95 lines (78 loc) · 2.73 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
language: java
services:
- docker
jobs:
fast_finish: true
allow_failures:
- jdk: oraclejdk11
include:
- stage: test
name: "Unit Testing"
jdk: openjdk11
script: ./gradlew clean test
- stage: test
name: "Unit Testing (oraclejdk11)"
jdk: oraclejdk11
script: ./gradlew clean test
- stage: test
name: "Integration Testing"
jdk: openjdk11
script: ./gradlew clean integrationTest
- stage: test
name: "API Testing"
jdk: openjdk11
script: ./gradlew clean apiTest
- stage: test
name: "Source Code Analysis"
jdk: openjdk11
script: ./gradlew checkstyle pmd spotbugs
- stage: snapshot
name: "Snapshot Publishing"
if: (type = push) AND ((branch = dev-1) OR (branch = master))
jdk: openjdk11
script: ./gradlew clean landscape-service:landscape-model:uploadArchives settings-service:settings-model:uploadArchives user-service:user-model:uploadArchives
- stage: deploy
name: "Docker Image: Analysis Service"
if: (type = push) AND ((branch = dev-1) OR (branch = master))
jdk: openjdk11
script: cd analysis-service && ../.travis/docker_push.sh
- stage: deploy
name: "Docker Image: User Service"
if: (type = push) AND ((branch = dev-1) OR (branch = master))
jdk: openjdk11
script: cd user-service && ../.travis/docker_push.sh
- stage: deploy
name: "Docker Image: Discovery Service"
if: (type = push) AND ((branch = dev-1) OR (branch = master))
jdk: openjdk11
script: cd discovery-service && ../.travis/docker_push.sh
- stage: deploy
name: "Docker Image: Landscape Service"
if: (type = push) AND ((branch = dev-1) OR (branch = master))
jdk: openjdk11
script: cd landscape-service && ../.travis/docker_push.sh
- stage: deploy
name: "Docker Image: History Service"
if: (type = push) AND ((branch = dev-1) OR (branch = master))
jdk: openjdk11
script: cd history-service && ../.travis/docker_push.sh
- stage: deploy
name: "Docker Image: Broadcast Service"
if: (type = push) AND ((branch = dev-1) OR (branch = master))
jdk: openjdk11
script: cd broadcast-service && ../.travis/docker_push.sh
- stage: deploy
name: "Docker Image: Settings Service"
if: (type = push) AND ((branch = dev-1) OR (branch = master))
jdk: openjdk11
script: cd settings-service && ../.travis/docker_push.sh
- stage: documentation
name: "Publish documentation"
if: (type = push) AND (branch = master)
script: chmod +x .travis/javadoc-push.sh && .travis/javadoc-push.sh
before_script:
- chmod +x .travis/docker_push.sh
branches:
only:
- master
- dev-1