.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:
|
paths:
|
||||||
- /builds/mfd/clearing/clr_test/mnt/testFiles
|
- /builds/mfd/clearing/clr_test/mnt/testFiles
|
||||||
script:
|
script:
|
||||||
- apk update && apk add maven python3
|
- apk update && apk add maven python3 git make libc-dev gcc openjdk17-jre
|
||||||
- cd clr_test
|
- cd clr_test
|
||||||
- pwd
|
- pwd
|
||||||
- cp -r /builds/mfd/clearing/z-distr/target/clearing/bin ./clearing-all/bin
|
- cp -r /builds/mfd/clearing/z-distr/target/clearing/bin ./clearing-all/bin
|
||||||
|
|
@ -53,6 +53,10 @@ test:
|
||||||
- mkdir -p mnt/testFiles
|
- mkdir -p mnt/testFiles
|
||||||
- echo "Hello, World" >> mnt/testFiles/1.txt
|
- echo "Hello, World" >> mnt/testFiles/1.txt
|
||||||
- cat 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
|
- python3 run_test_docker_containers.py
|
||||||
- ls mnt
|
- ls mnt
|
||||||
- ls mnt/testFiles
|
- ls mnt/testFiles
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,8 @@
|
||||||
CLEARING_HOME=/opt/clearing/
|
CLEARING_HOME=/opt/clearing/
|
||||||
cd $CLEARING_HOME/
|
cd $CLEARING_HOME/
|
||||||
|
|
||||||
|
date
|
||||||
|
|
||||||
echo Start CLEARING system
|
echo Start CLEARING system
|
||||||
sh ./launch_all.sh
|
sh ./launch_all.sh
|
||||||
sleep 15
|
sleep 15
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ def run_docker(folder_name):
|
||||||
print(f"Running docker-compose for {folder_name}")
|
print(f"Running docker-compose for {folder_name}")
|
||||||
os.chdir(CLR_TEST_DIR)
|
os.chdir(CLR_TEST_DIR)
|
||||||
#subprocess.call("docker compose down --volumes", shell=True)
|
#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("..")
|
os.chdir("..")
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue