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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tecnalia_robotics-public
templates
Merge requests
!64
Resolve "Improve CI template organization"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Improve CI template organization"
35-improve-ci-template-organization
into
master
Overview
48
Commits
25
Pipelines
26
Changes
4
Merged
Iñigo Moreno i Caireta
requested to merge
35-improve-ci-template-organization
into
master
3 years ago
Overview
5
Commits
25
Pipelines
26
Changes
4
Expand
Closes
#35 (closed)
Edited
3 years ago
by
Iñigo Moreno i Caireta
0
0
Merge request reports
Compare
master
version 24
d203ac7c
3 years ago
version 23
c6efb51d
3 years ago
version 22
6dad3be5
3 years ago
version 21
fbb78f07
3 years ago
version 20
b401fb2f
3 years ago
version 19
ce63c287
3 years ago
version 18
c1a3adca
3 years ago
version 17
a3266e1b
3 years ago
version 16
3f40512b
3 years ago
version 15
26f3d835
3 years ago
version 14
458e101f
3 years ago
version 13
6e1494fd
3 years ago
version 12
91bf0ad4
3 years ago
version 11
957981a6
3 years ago
version 10
76e19c40
3 years ago
version 9
50518fd1
3 years ago
version 8
74f619d3
3 years ago
version 7
3c6ca5d2
3 years ago
version 6
c6f626aa
3 years ago
version 5
6f776a62
3 years ago
version 4
6077b2db
3 years ago
version 3
91d7fee5
3 years ago
version 2
a5b15dd5
3 years ago
version 1
904d259e
3 years ago
master (base)
and
version 4
latest version
9e2a6ea2
25 commits,
3 years ago
version 24
d203ac7c
24 commits,
3 years ago
version 23
c6efb51d
23 commits,
3 years ago
version 22
6dad3be5
22 commits,
3 years ago
version 21
fbb78f07
21 commits,
3 years ago
version 20
b401fb2f
20 commits,
3 years ago
version 19
ce63c287
19 commits,
3 years ago
version 18
c1a3adca
18 commits,
3 years ago
version 17
a3266e1b
17 commits,
3 years ago
version 16
3f40512b
16 commits,
3 years ago
version 15
26f3d835
15 commits,
3 years ago
version 14
458e101f
14 commits,
3 years ago
version 13
6e1494fd
13 commits,
3 years ago
version 12
91bf0ad4
12 commits,
3 years ago
version 11
957981a6
11 commits,
3 years ago
version 10
76e19c40
10 commits,
3 years ago
version 9
50518fd1
9 commits,
3 years ago
version 8
74f619d3
8 commits,
3 years ago
version 7
3c6ca5d2
7 commits,
3 years ago
version 6
c6f626aa
6 commits,
3 years ago
version 5
6f776a62
5 commits,
3 years ago
version 4
6077b2db
4 commits,
3 years ago
version 3
91d7fee5
3 commits,
3 years ago
version 2
a5b15dd5
2 commits,
3 years ago
version 1
904d259e
1 commit,
3 years ago
4 files
+
135
−
184
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
gitlab-ci/post-check.yml
0 → 100644
+
95
−
0
Options
##########################################################
## Check formating of C and C++ files using clang-format
##########################################################
clang_format
:
stage
:
.post
before_script
:
-
apk add --update bash coreutils tar wget
-
git clone --quiet --depth 1 https://github.com/ros-industrial/industrial_ci.git .ci_config -b legacy
-
wget https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/raw/master/clang-format -O .clang-format
script
:
.ci_config/gitlab.sh
variables
:
ROS_DISTRO
:
kinetic
CLANG_FORMAT_CHECK
:
file
CLANG_FORMAT_VERSION
:
"
3.8"
when
:
always
tags
:
-
docker
##########################################################
## Simple check for basic Python syntax errors; this is much less thorough than
## other options like pylint, but much faster and less strict
##########################################################
python_syntax
:
before_script
:
-
apk add --update python2
stage
:
build
script
:
python -m compileall -q .
when
:
always
tags
:
-
docker
##########################################################
## Check for errors in bash/sh scripts
## Uses https://github.com/koalaman/shellcheck
##########################################################
bash_syntax
:
before_script
:
-
apk add --update shellcheck
stage
:
.post
script
:
-
RET=0
-
find . -type f -name '*.sh' -exec shellcheck -s sh {} + || RET=1
-
find . -type f -name '*.bash' -exec shellcheck -s bash {} + || RET=1
-
exit $RET
when
:
always
tags
:
-
docker
##########################################################
## Check for errors in markdown files
## Uses https://github.com/cytopia/awesome-ci
## Disables the line length rule with --custom="-r ..."
## See other rules that can be configured in
## https://github.com/markdownlint/markdownlint/blob/master/docs/RULES.md
##########################################################
markdown_syntax
:
stage
:
.post
script
:
docker run -v ${PWD}:/ac tecnalia-docker-dev.artifact.tecnalia.com/cytopia/awesome-ci syntax-markdown --path=/ac --extension=md --ignore=.ci_config --custom="-r ~MD013,~MD014"
when
:
always
tags
:
-
docker
##########################################################
## Check for various syntax issues in files; currently
## trailing white spaces
## utf8 formatting
## Uses https://github.com/cytopia/awesome-ci
##########################################################
file_syntax
:
stage
:
.post
script
:
-
RET=0
-
docker run -v ${PWD}:/ac tecnalia-docker-dev.artifact.tecnalia.com/cytopia/awesome-ci file-trailing-space --path=/ac --extension=py,txt,cpp,h,md,sh,bash,xml,launch --ignore=.ci_config || RET=1
-
docker run -v ${PWD}:/ac tecnalia-docker-dev.artifact.tecnalia.com/cytopia/awesome-ci file-utf8 --path=/ac --extension=py,txt,cpp,h,md,sh,bash,xml,launch --ignore=.ci_config || RET=1
-
exit $RET
when
:
always
tags
:
-
docker
##########################################################
## Check for errors in Asciidoctor files
## Could not find a proper linter for Asciidoctor format,
## so this is a custom-made "dirty" script
##########################################################
adoc_syntax
:
stage
:
.post
image
:
tecnalia-docker-dev.artifact.tecnalia.com/alpine
before_script
:
-
apk add --update curl asciidoctor bash
script
:
-
curl -Ls https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/raw/master/scripts/asciidoctor_syntax_check.bash | bash -s -- .
tags
:
-
docker
when
:
always
Loading