Skip to content
Snippets Groups Projects
Commit 642b763f authored by Leo Conforti's avatar Leo Conforti :icecream:
Browse files

test

parent 66a61d97
No related branches found
No related tags found
No related merge requests found
Pipeline #4528 failed
......@@ -39,9 +39,26 @@ build_job:
before_script:
- apk add --update nodejs npm python3 make g++
- npm install --global @devcontainers/cli
- devcontainer build --workspace-folder . --push false --image-name ${CI_REGISTRY_IMAGE}:latest
script:
- docker run --rm ${CI_REGISTRY_IMAGE}:latest pnpm coverage
- devcontainer build --no-cache --push false --image-name ${CI_REGISTRY_IMAGE}:latest --workspace-folder .
script: |
#!/bin/sh
set -e
build_date="$(date +%s)"
# Create a label for use during cleanup since the devcontainer CLI does
# not have a "remove" or "down" command yet (though this is planned).
id_label="ci-container=${build_date}"
# Run build
devcontainer up --id-label ${id_label} --workspace-folder .
set +e
devcontainer exec --id-label ${id_label} --workspace-folder . pnpm coverage
build_exit_code=$?
set -e
# Clean up.
docker rm -f $(docker ps -aq --filter label=${id_label})
exit ${build_exit_code}
coverage: /All files(?:[^|]*\|){4}\s*(\S+)/
artifacts:
paths:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment