Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
templates
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
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tecnalia_robotics-public
templates
Merge requests
!39
WIP: Resolve "Add asciidoctor syntax check to CI tests"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Closed
WIP: Resolve "Add asciidoctor syntax check to CI tests"
17-add-asciidoctor-syntax-check-to-ci-tests
into
master
Overview
2
Commits
10
Pipelines
14
Changes
3
Closed
WIP: Resolve "Add asciidoctor syntax check to CI tests"
Jon Azpiazu
requested to merge
17-add-asciidoctor-syntax-check-to-ci-tests
into
master
Dec 2, 2019
Overview
2
Commits
10
Pipelines
14
Changes
3
Closes
#17 (closed)
0
0
Merge request reports
Compare
master
version 12
388f8ecf
Dec 3, 2019
version 11
6256de14
Dec 3, 2019
version 10
e4b67872
Dec 3, 2019
version 9
d6ddf2f7
Dec 3, 2019
version 8
c50c1804
Dec 3, 2019
version 7
9268e47c
Dec 2, 2019
version 6
36e0c7d4
Dec 2, 2019
version 5
6e167ed8
Dec 2, 2019
version 4
bb915ff1
Dec 2, 2019
version 3
5e764ce4
Dec 2, 2019
version 2
27fd0552
Dec 2, 2019
version 1
56dc6b2a
Dec 2, 2019
master (base)
and
latest version
latest version
1d1dd357
10 commits,
Dec 3, 2019
version 12
388f8ecf
9 commits,
Dec 3, 2019
version 11
6256de14
8 commits,
Dec 3, 2019
version 10
e4b67872
7 commits,
Dec 3, 2019
version 9
d6ddf2f7
6 commits,
Dec 3, 2019
version 8
c50c1804
5 commits,
Dec 3, 2019
version 7
9268e47c
4 commits,
Dec 2, 2019
version 6
36e0c7d4
3 commits,
Dec 2, 2019
version 5
6e167ed8
2 commits,
Dec 2, 2019
version 4
bb915ff1
1 commit,
Dec 2, 2019
version 3
5e764ce4
3 commits,
Dec 2, 2019
version 2
27fd0552
2 commits,
Dec 2, 2019
version 1
56dc6b2a
1 commit,
Dec 2, 2019
3 files
+
55
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
scripts/asciidoctor_syntax_check.bash
0 → 100644
+
21
−
0
View file @ 1d1dd357
Edit in single-file editor
Open in Web IDE
#!/bin/bash
if
!
[
-x
"
$(
command
-v
asciidoctor
)
"
]
;
then
echo
"Error: asciidoctor is not installed"
exit
1
fi
if
[
-z
"
$1
"
]
;
then
echo
"Error: No argument supplied - path needed"
exit
1
fi
touch
output.log
# avoid failing if no adoc files exist
while
IFS
=
read
-r
-d
''
filename
;
do
asciidoctor
"
$filename
"
2>&1 |
tee
-a
output.log
done
< <
(
find
"
$1
"
-name
'*.adoc'
-type
f
-print0
)
adoc_errors
=
0
;
adoc_warnings
=
0
adoc_errors
=
$(
grep
-c
"ERROR"
output.log
)
adoc_warnings
=
$(
grep
-c
"WARNING"
output.log
)
echo
"AsciiDoc format Found
${
adoc_errors
}
errors and
${
adoc_warnings
}
warnings"
if
[
"
${
adoc_errors
}
"
-eq
0
]
;
then
exit
0
;
else
exit
1
;
fi
Loading