.gitlab-ci.yml updated v96
This commit is contained in:
parent
ae6720798b
commit
41fb033488
2 changed files with 4 additions and 3 deletions
|
|
@ -45,13 +45,12 @@ test:
|
||||||
untracked: true
|
untracked: true
|
||||||
expire_in: 1 day
|
expire_in: 1 day
|
||||||
paths:
|
paths:
|
||||||
- $CI_PROJECT_DIR
|
- $CI_PROJECT_DIR/
|
||||||
script:
|
script:
|
||||||
- echo $CI_PROJECT_DIR
|
- echo $CI_PROJECT_DIR
|
||||||
- pwd
|
- pwd
|
||||||
- echo "Installing maven and python" && apk update && apk add maven python3
|
- echo "Installing maven and python" && apk update && apk add maven python3
|
||||||
- cd clr_test
|
|
||||||
# - echo "Copying jar files to clearing-all/bin" && cp -r /builds/mfd/clearing/z-distr/target/clearing/bin ./clearing-all/bin
|
# - 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
|
# - echo "Copying DDL.sql to db directory" && cp /builds/mfd/clearing/z-distr/target/clearing/db/DDL.sql ./db
|
||||||
- python3 run_test_docker_containers.py
|
- python3 clr_test/run_test_docker_containers.py
|
||||||
- ls $CI_PROJECT_DIR/clr_test/mnt/results
|
- ls $CI_PROJECT_DIR/clr_test/mnt/results
|
||||||
|
|
|
||||||
|
|
@ -16,9 +16,11 @@ RESULT_FILES_DIR = os.environ['RESULT_FILES_DIR']
|
||||||
|
|
||||||
def run_docker(folder_name, date):
|
def run_docker(folder_name, date):
|
||||||
print(f"Running docker-compose for {folder_name}")
|
print(f"Running docker-compose for {folder_name}")
|
||||||
|
os.chdir("clr_test")
|
||||||
subprocess.call('docker compose pull', shell=True)
|
subprocess.call('docker compose pull', shell=True)
|
||||||
subprocess.call('docker compose build --no-cache', shell=True)
|
subprocess.call('docker compose build --no-cache', shell=True)
|
||||||
subprocess.call('docker compose up --abort-on-container-exit --exit-code-from clearing_system', shell=True)
|
subprocess.call('docker compose up --abort-on-container-exit --exit-code-from clearing_system', shell=True)
|
||||||
|
os.chdir("..")
|
||||||
|
|
||||||
|
|
||||||
def read_date(folder_name):
|
def read_date(folder_name):
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue