.gitlab-ci.yml updated v54
This commit is contained in:
parent
9ce9fcc998
commit
cdb8e280c3
3 changed files with 8 additions and 2 deletions
|
|
@ -45,7 +45,7 @@ test:
|
|||
paths:
|
||||
- /builds/mfd/clearing/clr_test/mnt/testFiles
|
||||
script:
|
||||
- apk update && apk add maven python3
|
||||
- apk update && apk add maven python3 git make libc-dev gcc openjdk17-jre
|
||||
- cd clr_test
|
||||
- pwd
|
||||
- cp -r /builds/mfd/clearing/z-distr/target/clearing/bin ./clearing-all/bin
|
||||
|
|
@ -53,6 +53,10 @@ test:
|
|||
- mkdir -p mnt/testFiles
|
||||
- echo "Hello, World" >> mnt/testFiles/1.txt
|
||||
- cat mnt/testFiles/1.txt
|
||||
- git clone https://github.com/wolfcw/libfaketime.git
|
||||
- cd libfaketime/src/
|
||||
- make install
|
||||
- cd -
|
||||
- python3 run_test_docker_containers.py
|
||||
- ls mnt
|
||||
- ls mnt/testFiles
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@
|
|||
CLEARING_HOME=/opt/clearing/
|
||||
cd $CLEARING_HOME/
|
||||
|
||||
date
|
||||
|
||||
echo Start CLEARING system
|
||||
sh ./launch_all.sh
|
||||
sleep 15
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ def run_docker(folder_name):
|
|||
print(f"Running docker-compose for {folder_name}")
|
||||
os.chdir(CLR_TEST_DIR)
|
||||
#subprocess.call("docker compose down --volumes", shell=True)
|
||||
subprocess.call("docker compose up -V --build --abort-on-container-exit --exit-code-from clearing_system", shell=True)
|
||||
subprocess.call('LD_PRELOAD=/usr/local/lib/faketime/libfaketime.so.1 FAKETIME_DONT_FAKE_MONOTONIC=1 FAKETIME="@2020-12-24 20:30:00" docker compose up -V --build --abort-on-container-exit --exit-code-from clearing_system', shell=True)
|
||||
os.chdir("..")
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue