Skip to content
Snippets Groups Projects
Commit c1d11923 authored by Sébastien Heurtematte's avatar Sébastien Heurtematte :speech_balloon:
Browse files

feat: test deploy stage


Signed-off-by: Sébastien Heurtematte's avatarsebastien.heurtematte <sebastien.heurtematte@eclipse-foundation.org>
parent 3102c15d
No related branches found
No related tags found
No related merge requests found
Pipeline #12224 canceled
This commit is part of merge request !30. Comments created here will be created in the context of that merge request.
...@@ -217,28 +217,28 @@ build-docs: ...@@ -217,28 +217,28 @@ build-docs:
<!-- add docs at the exact version are testing --> <!-- add docs at the exact version are testing -->
<project name="${CI_PROJECT_NAME}" path="docs" remote="oniro-override" revision="${CI_COMMIT_SHA}" /> <project name="${CI_PROJECT_NAME}" path="docs" remote="oniro-override" revision="${CI_COMMIT_SHA}" />
</manifest> </manifest>
rules: # rules:
# During the merge request, substitute the "docs" repository that is # # During the merge request, substitute the "docs" repository that is
# described by the manifest with the project that is the source of the # # described by the manifest with the project that is the source of the
# merge request. This does not test the merged result but is the next best # # merge request. This does not test the merged result but is the next best
# thing we can do right now. # # thing we can do right now.
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"' # - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
variables: # variables:
CI_ONIRO_REPO_WORKSPACE_LOCAL_MANIFEST_INTERPRETER: eval # CI_ONIRO_REPO_WORKSPACE_LOCAL_MANIFEST_INTERPRETER: eval
CI_ONIRO_REPO_WORKSPACE_LOCAL_MANIFEST: | # CI_ONIRO_REPO_WORKSPACE_LOCAL_MANIFEST: |
cat <<__EOM__ # cat <<__EOM__
<?xml version="1.0" encoding="UTF-8"?> # <?xml version="1.0" encoding="UTF-8"?>
<manifest> # <manifest>
<!-- remove original docs project entry --> # <!-- remove original docs project entry -->
<remove-project name="oniro-core/docs.git" /> # <remove-project name="oniro-core/docs.git" />
<!-- add remote representing the project --> # <!-- add remote representing the project -->
<remote name="oniro-override" fetch="${CI_MERGE_REQUEST_SOURCE_PROJECT_URL}/../" /> # <remote name="oniro-override" fetch="${CI_MERGE_REQUEST_SOURCE_PROJECT_URL}/../" />
<!-- add docs at the exact version are testing --> # <!-- add docs at the exact version are testing -->
<project name="$(basename "$CI_MERGE_REQUEST_SOURCE_PROJECT_PATH")" path="docs" remote="oniro-override" revision="${CI_COMMIT_SHA}" /> # <project name="$(basename "$CI_MERGE_REQUEST_SOURCE_PROJECT_PATH")" path="docs" remote="oniro-override" revision="${CI_COMMIT_SHA}" />
</manifest> # </manifest>
__EOM__ # __EOM__
# Or when things land. # # Or when things land.
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' # - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
deploy: deploy:
extends: .oniro-repo-workspace extends: .oniro-repo-workspace
...@@ -269,5 +269,5 @@ deploy: ...@@ -269,5 +269,5 @@ deploy:
else else
echo "Nothing new to commit."; echo "Nothing new to commit.";
fi fi
rules: # rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' # - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
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