Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Scripts
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
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Specification Tools
Scripts
Commits
af67613e
Commit
af67613e
authored
9 months ago
by
Miguel Angel Reina Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Adding support to work items
parent
2b1373e0
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
generateChangemarks/.gitlab-ci.yml
+3
-3
3 additions, 3 deletions
generateChangemarks/.gitlab-ci.yml
publish_spec.sh
+5
-3
5 additions, 3 deletions
publish_spec.sh
with
8 additions
and
6 deletions
generateChangemarks/.gitlab-ci.yml
+
3
−
3
View file @
af67613e
...
@@ -88,12 +88,12 @@ Publish spec:
...
@@ -88,12 +88,12 @@ Publish spec:
-
tags
-
tags
before_script
:
before_script
:
-
|
-
|
curl "${CI_API_V4_URL}/projects/$TOOLS_SCRIPTS_PROJECT_ID/repository/files/publish_spec%2Esh/raw?ref=
master
" >> publish_spec.sh
curl "${CI_API_V4_URL}/projects/$TOOLS_SCRIPTS_PROJECT_ID/repository/files/publish_spec%2Esh/raw?ref=
workitems
" >> publish_spec.sh
-
chmod +x publish_spec.sh
-
chmod +x publish_spec.sh
-
|
-
|
curl "${CI_API_V4_URL}/projects/$TOOLS_SCRIPTS_PROJECT_ID/repository/files/Spec-template%2Edocx/raw?ref=master" >> onem2m_spec_template.docx
curl "${CI_API_V4_URL}/projects/$TOOLS_SCRIPTS_PROJECT_ID/repository/files/Spec-template%2Edocx/raw?ref=master" >> onem2m_spec_template.docx
-
|
-
|
export SPEC_NAME=$(ls | grep
T*
.md | cut -d'.' -f1)
export SPEC_NAME=$(ls | grep
-E "(TS|TR|WI).*\
.md
"
| cut -d'.' -f1)
script
:
script
:
-
echo 'Publishing spec'
-
echo 'Publishing spec'
-
./publish_spec.sh ${CI_PROJECT_URL} ${CI_COMMIT_TAG} onem2m_spec_template.docx $SPEC_NAME
-
./publish_spec.sh ${CI_PROJECT_URL} ${CI_COMMIT_TAG} onem2m_spec_template.docx $SPEC_NAME
...
@@ -168,7 +168,7 @@ pages:
...
@@ -168,7 +168,7 @@ pages:
-
|
-
|
curl "${CI_API_V4_URL}/projects/$TOOLS_SCRIPTS_PROJECT_ID/repository/files/toMkdocs%2FtoMkdocs%2Epy/raw?ref=master" >> toMkdocs.py
curl "${CI_API_V4_URL}/projects/$TOOLS_SCRIPTS_PROJECT_ID/repository/files/toMkdocs%2FtoMkdocs%2Epy/raw?ref=master" >> toMkdocs.py
-
|
-
|
export SPEC_NAME=$(ls | grep
T*
.md | cut -d'.' -f1)
export SPEC_NAME=$(ls | grep
-E "(TS|TR|WI).*\
.md
"
| cut -d'.' -f1)
-
|
-
|
curl "${CI_API_V4_URL}/projects/$TOOLS_SCRIPTS_PROJECT_ID/repository/files/spec_on_pages%2Esh/raw?ref=master" >> spec_on_pages.sh
curl "${CI_API_V4_URL}/projects/$TOOLS_SCRIPTS_PROJECT_ID/repository/files/spec_on_pages%2Esh/raw?ref=master" >> spec_on_pages.sh
-
chmod +x spec_on_pages.sh
-
chmod +x spec_on_pages.sh
...
...
This diff is collapsed.
Click to expand it.
publish_spec.sh
+
5
−
3
View file @
af67613e
...
@@ -34,8 +34,10 @@ done
...
@@ -34,8 +34,10 @@ done
for
i
in
*
.md
;
do
for
i
in
*
.md
;
do
if
[
$i
!=
'README.md'
]
;
then
if
[
$i
!=
'README.md'
]
;
then
if
[[
$i
=
~
'(TS|TR).*\.md'
]]
;
then
echo
"
\n
------ Adding TOC to spec --------"
echo
"
\n
------ Adding TOC to spec --------"
docker run
--rm
-v
$(
pwd
)
:/tmp/
-u
$(
id
-u
)
:
$(
id
-g
)
"
$TOOLS_DOCKER_IMAGE
"
generateTOC
--add-content
"/tmp/
$i
"
docker run
--rm
-v
$(
pwd
)
:/tmp/
-u
$(
id
-u
)
:
$(
id
-g
)
"
$TOOLS_DOCKER_IMAGE
"
generateTOC
--add-content
"/tmp/
$i
"
fi
echo
"
\n
------ Preparaing spec --------"
echo
"
\n
------ Preparaing spec --------"
docker run
--rm
-v
$(
pwd
)
:/tmp/
-u
$(
id
-u
)
:
$(
id
-g
)
"
$TOOLS_DOCKER_IMAGE
"
pandocFilter
-o
"/tmp/"
"/tmp/
$i
"
docker run
--rm
-v
$(
pwd
)
:/tmp/
-u
$(
id
-u
)
:
$(
id
-g
)
"
$TOOLS_DOCKER_IMAGE
"
pandocFilter
-o
"/tmp/"
"/tmp/
$i
"
echo
"
\n
------ Publishing spec --------"
echo
"
\n
------ Publishing spec --------"
...
...
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