.gitlab-ci.yml updated v108
This commit is contained in:
parent
b011e2c716
commit
f092833de8
1 changed files with 30 additions and 7 deletions
|
|
@ -35,6 +35,25 @@ preflight:
|
||||||
# paths:
|
# paths:
|
||||||
# - /builds/mfd/clearing/z-distr/target/clearing
|
# - /builds/mfd/clearing/z-distr/target/clearing
|
||||||
|
|
||||||
|
#test:
|
||||||
|
# stage: test
|
||||||
|
# variables:
|
||||||
|
# CLEARING_TEST_DIR: "/builds/mfd/clearing/clearing_test"
|
||||||
|
# CLR_TEST_DIR: "/builds/mfd/clearing/clr_test"
|
||||||
|
# RESULT_FILES_DIR: "/builds/mfd/clearing/clr_test/result-files"
|
||||||
|
# script:
|
||||||
|
# - echo $CI_PROJECT_DIR
|
||||||
|
# - pwd
|
||||||
|
# - 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 ./clearing-all/bin
|
||||||
|
## - 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
|
||||||
|
# artifacts:
|
||||||
|
# expire_in: 1 day
|
||||||
|
# when: always
|
||||||
|
# paths:
|
||||||
|
# - $CI_PROJECT_DIR/
|
||||||
|
|
||||||
test:
|
test:
|
||||||
stage: test
|
stage: test
|
||||||
variables:
|
variables:
|
||||||
|
|
@ -42,12 +61,16 @@ test:
|
||||||
CLR_TEST_DIR: "/builds/mfd/clearing/clr_test"
|
CLR_TEST_DIR: "/builds/mfd/clearing/clr_test"
|
||||||
RESULT_FILES_DIR: "/builds/mfd/clearing/clr_test/result-files"
|
RESULT_FILES_DIR: "/builds/mfd/clearing/clr_test/result-files"
|
||||||
script:
|
script:
|
||||||
- echo $CI_PROJECT_DIR
|
- cd clr_test
|
||||||
- pwd
|
- rm -rf /builds/mfd/clearing/clr_test/clearing-all/clearing_testing_utils/store/expected
|
||||||
- echo "Installing maven and python" && apk update && apk add maven python3
|
- rm -rf /builds/mfd/clearing/clr_test/clearing-all/clearing_testing_utils/store/input
|
||||||
# - echo "Copying jar files to clearing-all/bin" && cp -r /builds/mfd/clearing/z-distr/target/clearing/bin ./clearing-all/bin
|
- rm /builds/mfd/clearing/clr_test/db/export.sql
|
||||||
# - echo "Copying DDL.sql to db directory" && cp /builds/mfd/clearing/z-distr/target/clearing/db/DDL.sql ./db
|
- rm /builds/mfd/clearing/clr_test/db/test-data.sql
|
||||||
- python3 clr_test/run_test_docker_containers.py
|
- cp -r /builds/mfd/clearing/clearing_test/1.0.SESN.MKR.CURR/db/. /builds/mfd/clearing/clr_test/db/
|
||||||
|
- cp -r /builds/mfd/clearing/clearing_test/1.0.SESN.MKR.CURR/clearing_testing_utils/. /builds/mfd/clearing/clr_test/clearing-all/clearing_testing_utils/
|
||||||
|
- docker compose pull
|
||||||
|
- docker compose build --no-cache
|
||||||
|
- docker compose up --abort-on-container-exit --exit-code-from clearing_system
|
||||||
artifacts:
|
artifacts:
|
||||||
expire_in: 1 day
|
expire_in: 1 day
|
||||||
when: always
|
when: always
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue