.gitlab-ci.yml updated v56
This commit is contained in:
parent
87d6029649
commit
7650e4b7a1
4 changed files with 16 additions and 9 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 git make libc-dev gcc openjdk17-jre
|
- apk update && apk add maven python3
|
||||||
- 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,11 +53,7 @@ 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
|
- python3 run_test_docker_containers.py
|
||||||
- cd libfaketime/src/
|
|
||||||
- make install
|
|
||||||
- cd -
|
|
||||||
- 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
|
||||||
- ls mnt/testFiles
|
- ls mnt/testFiles
|
||||||
# - docker-compose down --volumes
|
# - docker-compose down --volumes
|
||||||
|
|
|
||||||
|
|
@ -35,4 +35,11 @@ RUN sed -i 's/\r$//' $CLEARING_HOME/clearing_testing_utils/*.sh
|
||||||
RUN sed -i 's/\r$//' $CLEARING_HOME/clearing_testing_utils/clearing-checker/*.sh
|
RUN sed -i 's/\r$//' $CLEARING_HOME/clearing_testing_utils/clearing-checker/*.sh
|
||||||
RUN sed -i 's/\r$//' $CLEARING_HOME/clearing_testing_utils/clearing-converter/*.sh
|
RUN sed -i 's/\r$//' $CLEARING_HOME/clearing_testing_utils/clearing-converter/*.sh
|
||||||
RUN sed -i 's/\r$//' $CLEARING_HOME/clearing_testing_utils/clearing-tester/*.sh
|
RUN sed -i 's/\r$//' $CLEARING_HOME/clearing_testing_utils/clearing-tester/*.sh
|
||||||
ENTRYPOINT [ "./launch_and_test.sh" ]
|
|
||||||
|
RUN apk update && apk add git make libc-dev gcc openjdk17-jre
|
||||||
|
RUN git clone https://github.com/wolfcw/libfaketime.git
|
||||||
|
WORKDIR libfaketime/src/
|
||||||
|
RUN make install
|
||||||
|
WORKDIR $CLEARING_HOME
|
||||||
|
|
||||||
|
ENTRYPOINT [ "./launch_and_test_faketime.sh" ]
|
||||||
6
clr_test/clearing-all/launch_and_test_faketime.sh
Normal file
6
clr_test/clearing-all/launch_and_test_faketime.sh
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
CLEARING_HOME=/opt/clearing/
|
||||||
|
cd $CLEARING_HOME/
|
||||||
|
|
||||||
|
LD_PRELOAD=/usr/local/lib/faketime/libfaketime.so.1 FAKETIME_DONT_FAKE_MONOTONIC=1 FAKETIME="@2020-12-24 20:30:00" sh ./launch_and_test.sh
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
from datetime import date
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import shutil
|
import shutil
|
||||||
|
|
@ -18,7 +17,6 @@ def run_docker(folder_name):
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
print(date.today())
|
|
||||||
folders = [i for i in sorted(os.listdir(DATA_ROOT_DIR)) if re.search("\\d{1,}.\\d{1,}.*", i)]
|
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/expected")
|
||||||
shutil.rmtree(f"{CLR_TEST_DIR}/clearing-all/clearing_testing_utils/store/input")
|
shutil.rmtree(f"{CLR_TEST_DIR}/clearing-all/clearing_testing_utils/store/input")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue