add build stage

This commit is contained in:
etreschenkov 2024-07-09 14:17:44 +03:00
parent 281fa4f5d6
commit aff20d2c42
20 changed files with 12 additions and 12 deletions

View file

@ -24,16 +24,16 @@ preflight:
paths: paths:
- clearing_test - clearing_test
#build: build:
# image: ${DOCKER_PROXY}/maven:latest image: ${DOCKER_PROXY}/maven:latest
# stage: build stage: build
# script: script:
# - mvn clean package -DskipTests -Pdistributive - mvn clean package -DskipTests -Pdistributive
# artifacts: artifacts:
# name: "$CI_COMMIT_REF_NAME" name: "$CI_COMMIT_REF_NAME"
# expire_in: 1 day expire_in: 1 day
# paths: paths:
# - /builds/mfd/clearing/z-distr/target/clearing - /builds/mfd/clearing/z-distr/target/clearing
test: test:
stage: test stage: test
@ -43,8 +43,8 @@ test:
RESULT_FILES_DIR: "/builds/mfd/clearing/clr_test/result-files" RESULT_FILES_DIR: "/builds/mfd/clearing/clr_test/result-files"
script: script:
- echo "Installing maven and python" && apk update && apk add maven python3 - echo "Installing maven and python" && apk update && apk add maven python3
# - echo "Copying jar files to clearing-all/bin" && cp -r /builds/mfd/clearing/z-distr/target/clearing/bin ./clr_test/clearing-all/bin - echo "Copying jar files to clearing-all/bin" && cp -r /builds/mfd/clearing/z-distr/target/clearing/bin ./clr_test/clearing-all/bin
# - echo "Copying DDL.sql to db directory" && cp /builds/mfd/clearing/z-distr/target/clearing/db/DDL.sql ./db - echo "Copying DDL.sql to db directory" && cp /builds/mfd/clearing/z-distr/target/clearing/db/DDL.sql ./db
- python3 clr_test/run_test_docker_containers.py - python3 clr_test/run_test_docker_containers.py
artifacts: artifacts:
expire_in: 1 day expire_in: 1 day

Binary file not shown.