Loading testing/dockerfile +7 −2 Original line number Diff line number Diff line FROM python:3.7 RUN pip3 install -q asn1tools lxml xmlschema No newline at end of file # docker build -t mcanterb/forge-cicd # docker push mcanterb/forge-cicd FROM python:3.8 RUN apt update && apt-get install -y git RUN pip3 install -q asn1tools lxml xmlschema requests gitpython No newline at end of file testing/merge_test.py +2 −2 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ import requests import json import subprocess print ("Hello world v1.1") print ("Hello world v1.2") crCommitBranch = os.environ.get("CI_COMMIT_REF_NAME", "cr/TS33128/0163") apiUrl = os.environ.get("CI_API_V4_URL", "https://forge.3gpp.org/rep/api/v4") Loading @@ -17,7 +17,7 @@ def gapi (query): def do (commandline): print (" Attempting: " + commandline) completedProc = subprocess.run(commandline, capture_output=True) completedProc = subprocess.run(commandline, capture_output=True, shell=True) print (" STDOUT > " + ("empty" if completedProc.stdout is None else completedProc.stdout.decode('utf-8'))) print (" STDERR > " + ("empty" if completedProc.stderr is None else completedProc.stderr.decode('utf-8'))) print (f" Completed with code {completedProc.returncode}") Loading Loading
testing/dockerfile +7 −2 Original line number Diff line number Diff line FROM python:3.7 RUN pip3 install -q asn1tools lxml xmlschema No newline at end of file # docker build -t mcanterb/forge-cicd # docker push mcanterb/forge-cicd FROM python:3.8 RUN apt update && apt-get install -y git RUN pip3 install -q asn1tools lxml xmlschema requests gitpython No newline at end of file
testing/merge_test.py +2 −2 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ import requests import json import subprocess print ("Hello world v1.1") print ("Hello world v1.2") crCommitBranch = os.environ.get("CI_COMMIT_REF_NAME", "cr/TS33128/0163") apiUrl = os.environ.get("CI_API_V4_URL", "https://forge.3gpp.org/rep/api/v4") Loading @@ -17,7 +17,7 @@ def gapi (query): def do (commandline): print (" Attempting: " + commandline) completedProc = subprocess.run(commandline, capture_output=True) completedProc = subprocess.run(commandline, capture_output=True, shell=True) print (" STDOUT > " + ("empty" if completedProc.stdout is None else completedProc.stdout.decode('utf-8'))) print (" STDERR > " + ("empty" if completedProc.stderr is None else completedProc.stderr.decode('utf-8'))) print (f" Completed with code {completedProc.returncode}") Loading