Skip to content
Snippets Groups Projects
Verified Commit 1deec1d8 authored by Dan Thomson's avatar Dan Thomson
Browse files

Reduce to only doing a release job for now

parent 446d538c
No related branches found
Tags v0
1 merge request!1Resolve "Get the pytest component working"
Pipeline #152024 passed
---
include:
# include the component located in the current project from the current SHA
- component: $CI_SERVER_HOST/$CI_PROJECT_PATH/$CI_PROJECT_NAMEt@$CI_COMMIT_SHA
inputs:
stage: build
stages:
- build
- test
- release
# Expect `component-job` is added.
# This example tests that the included component works as expected.
# You can inspect data generated by the component, use GitLab API endpoints or third-party tools.
ensure-job-added:
stage: test
image: badouralix/curl-jq
script:
- |
route="$CI_API_V4_URL/projects/$CI_PROJECT_ID/pipelines/$CI_PIPELINE_ID/jobs"
count=`curl --silent --header "Private-Token: $CI_JOB_TOKEN" $route | jq 'map(select(.name | contains("component-job"))) | length'`
if [ "$count" != "1" ]; then
exit 1
fi
# If we are tagging a release with a specific convention ("v" + number) and all
# previous checks succeeded, we proceed with creating a release automatically.
create-release:
......
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