-
Notifications
You must be signed in to change notification settings - Fork 121
/
.flowci.yaml
63 lines (53 loc) · 1.56 KB
/
.flowci.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#
# Maven Project Template
#
envs:
# Git config
FLOWCI_GIT_URL: "https://github.com/FlowCI/flow-core-x.git"
## Credential name if git repo url is ssh or login required for http
# FLOWCI_GIT_CREDENTIAL: "the credentail name your created"
docker:
image: "maven:3.6-jdk-8"
steps:
- name: clone
plugin: 'gitclone'
envs:
FLOWCI_GITCLONE_TIMEOUT: 600
allow_failure: false
- name: run unit test
timeout: 7200
dockers:
- image: "maven:3.6-jdk-8"
is_runtime: true
- image: mongo:4.2
- image: zookeeper:3.6
- image: rabbitmq:3-management
- image: minio/minio:RELEASE.2021-06-07T21-40-51Z
environment:
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123
command: ["server", "/data"]
bash: |
export FLOWCI_RABBITMQ_URI=amqp:https://guest:guest@${CONTAINER_IP_3}:5672
export FLOWCI_MINIO_ENDPOINT=http:https://${CONTAINER_IP_4}:9000
export FLOWCI_ZK_HOST=${CONTAINER_IP_2}:2181
export FLOWCI_MONGODB_URI=mongodb:https://${CONTAINER_IP_1}:27017/flow_db_ut
echo "${FLOWCI_RABBITMQ_URI}"
echo "${FLOWCI_MINIO_ENDPOINT}"
echo "${FLOWCI_ZK_HOST}"
echo "${FLOWCI_MONGODB_URI}"
envs:
MVN_CMD: "mvn clean test"
plugin: 'maven-runner'
- name: junit upload
plugin: "junit-report-uploader"
- name: jacoco upload
plugin: "jacoco-report-uploader"
- name: package
envs:
MVN_CMD: "mvn package -Dmaven.test.skip=true"
plugin: 'maven-runner'
- name: upload
envs:
artifact_pattern: "*.jar"
plugin: 'artifact-upload'