test/.drone.yml
XinWei be0eb1e1fd
All checks were successful
continuous-integration/drone Build is passing
init
2024-09-10 11:11:52 +08:00

39 lines
1007 B
YAML

kind: pipeline
type: docker
name: microservice-build
clone:
disable: true
steps:
- name: debug-env
image: alpine:latest
commands:
- env
- name: build-service
image: maven:3-jdk-8
commands:
# - echo "Building Service: ${SERVICE}"
- |
if [ ${SERVICE} = "gateway" ]; then
echo "Building Gateway Service..."
elif [ ${SERVICE} = "system" ]; then
echo "Building System Service..."
else
echo "Building All Services..."
# 如果有其他服务,可以在这里继续添加
fi
- name: test-service
image: maven:3-jdk-8
commands:
# - echo "Testing Service: ${SERVICE}"
- |
if [ "${SERVICE}" = "gateway" ]; then
echo "Testing Gateway Service..."
elif [ "${SERVICE}" = "system" ]; then
echo "Testing System Service..."
else
echo "Testing All Services..."
# 如果有其他服务,可以在这里继续添加
fi