Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
eftar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Leo Conforti
eftar
Commits
642b763f
Commit
642b763f
authored
3 weeks ago
by
Leo Conforti
Browse files
Options
Downloads
Patches
Plain Diff
test
parent
66a61d97
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#4528
failed
3 weeks ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+20
-3
20 additions, 3 deletions
.gitlab-ci.yml
with
20 additions
and
3 deletions
.gitlab-ci.yml
+
20
−
3
View file @
642b763f
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment