Loading src/device/.gitlab-ci.yml +31 −25 Original line number Diff line number Diff line Loading @@ -12,6 +12,11 @@ # See the License for the specific language governing permissions and # limitations under the License. stages: - build - prepare - unit_test # Build, tag, and push the Docker image to the GitLab Docker registry build_device: variables: Loading Loading @@ -49,7 +54,7 @@ deploy_mock_qkd_nodes: else docker network create -d bridge teraflowbridge; fi - > - | for port in 11111 22222 33333; do if lsof -i:$port >/dev/null 2>&1; then echo "Freeing up port $port..."; Loading @@ -57,7 +62,8 @@ deploy_mock_qkd_nodes: fi done - MOCK_NODES_DIR="/home/cttc-docker/tfs-ctrl/src/tests/tools/mock_qkd_nodes" - if [ -d "$MOCK_NODES_DIR" ]; then - | if [ -d "$MOCK_NODES_DIR" ]; then cd "$MOCK_NODES_DIR" && ./start.sh & else echo "Error: Mock QKD nodes directory '$MOCK_NODES_DIR' not found." && exit 1; Loading Loading
src/device/.gitlab-ci.yml +31 −25 Original line number Diff line number Diff line Loading @@ -12,6 +12,11 @@ # See the License for the specific language governing permissions and # limitations under the License. stages: - build - prepare - unit_test # Build, tag, and push the Docker image to the GitLab Docker registry build_device: variables: Loading Loading @@ -49,7 +54,7 @@ deploy_mock_qkd_nodes: else docker network create -d bridge teraflowbridge; fi - > - | for port in 11111 22222 33333; do if lsof -i:$port >/dev/null 2>&1; then echo "Freeing up port $port..."; Loading @@ -57,7 +62,8 @@ deploy_mock_qkd_nodes: fi done - MOCK_NODES_DIR="/home/cttc-docker/tfs-ctrl/src/tests/tools/mock_qkd_nodes" - if [ -d "$MOCK_NODES_DIR" ]; then - | if [ -d "$MOCK_NODES_DIR" ]; then cd "$MOCK_NODES_DIR" && ./start.sh & else echo "Error: Mock QKD nodes directory '$MOCK_NODES_DIR' not found." && exit 1; Loading