.gitlab-ci.yml updated v112
This commit is contained in:
parent
54fd6ebcbc
commit
e010e1d200
2 changed files with 10 additions and 1 deletions
|
|
@ -16,4 +16,11 @@ sleep 30
|
|||
echo Run clearing-tester
|
||||
sh ./clearing_testing_utils/clearing-tester/clearing-tester.sh
|
||||
|
||||
echo Test finish. Exit code: $?
|
||||
if [ $? -eq 0 ]
|
||||
then
|
||||
echo "Tests passed successfully"
|
||||
exit 0
|
||||
else
|
||||
echo "Tests failed"
|
||||
exit 1
|
||||
fi
|
||||
|
|
@ -18,6 +18,8 @@ RESULT_FILES_DIR = os.environ['RESULT_FILES_DIR']
|
|||
def run_docker(folder_name):
|
||||
logging.info(f"Running docker-compose for {folder_name}")
|
||||
os.chdir("clr_test")
|
||||
subprocess.call('docker rm -f $(docker ps --all -q --filter ancestor=clr_test-db)', shell=True)
|
||||
subprocess.call('docker rm -f $(docker ps --all -q --filter ancestor=clr_test-clearing_system)', shell=True)
|
||||
subprocess.call('docker rmi -f clr_test-db', shell=True)
|
||||
subprocess.call('docker rmi -f clr_test-clearing_system', shell=True)
|
||||
code = subprocess.call('docker compose up --abort-on-container-exit --exit-code-from clearing_system', shell=True)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue