.gitlab-ci.yml updated v55
This commit is contained in:
parent
cdb8e280c3
commit
87d6029649
2 changed files with 4 additions and 2 deletions
|
|
@ -57,7 +57,7 @@ test:
|
|||
- cd libfaketime/src/
|
||||
- make install
|
||||
- cd -
|
||||
- python3 run_test_docker_containers.py
|
||||
- LD_PRELOAD=/usr/local/lib/faketime/libfaketime.so.1 FAKETIME_DONT_FAKE_MONOTONIC=1 FAKETIME="@2020-12-24 20:30:00" python3 run_test_docker_containers.py
|
||||
- ls mnt
|
||||
- ls mnt/testFiles
|
||||
# - docker-compose down --volumes
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
from datetime import date
|
||||
import os
|
||||
import re
|
||||
import shutil
|
||||
|
|
@ -12,11 +13,12 @@ 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('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)
|
||||
subprocess.call('docker compose up -V --build --abort-on-container-exit --exit-code-from clearing_system', shell=True)
|
||||
os.chdir("..")
|
||||
|
||||
|
||||
def main():
|
||||
print(date.today())
|
||||
folders = [i for i in sorted(os.listdir(DATA_ROOT_DIR)) if re.search("\\d{1,}.\\d{1,}.*", i)]
|
||||
shutil.rmtree(f"{CLR_TEST_DIR}/clearing-all/clearing_testing_utils/store/expected")
|
||||
shutil.rmtree(f"{CLR_TEST_DIR}/clearing-all/clearing_testing_utils/store/input")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue