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
Compare revisions
master to 48-python3_syntax
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
tecnalia_robotics-public/gitlab_templates
Select target project
No results found
48-python3_syntax
Select Git revision
Branches
17-add-asciidoctor-syntax-check-to-ci-tests
3-upload-docker-compose-file-with-services-in-roboticsbuilder
40-repo-is-ros-testing
45-double-pipeline-triggered-if-merge-request-has-melodic-branch-name
46-default-docker-image-name-too-long
48-python3_syntax
52-ddeploy-job-failing-when-enforcing-labels-alt-quick-dind-test
55-collision-between-test-jobs-due-to-dds-autodiscovery-ros2
58-add-yolo-pip-package-support
62-deploy-jobs-do-not-pull-files-from-lfs-custom-docker-image
62-deploy-jobs-do-not-pull-files-from-lfs-manual-lfs-pull
66-jazzy-support
68-git-lfs-error-in-ddeploy-job
add-packages
dev-image-test
master
py3-without-industrial-ci-test
split-build-and-test
test-badges
test-lfs-concept
test-use-fat-docker-image
test/13-add-clang-format-to-the-ci-tests
test/configurable-ci-setup-lookup-path
use-minimal-docker
24 results
Swap
Target
tecnalia_robotics-public/gitlab_templates
Select target project
miguel.prada/gitlab_templates
tecnalia_robotics-public/gitlab_templates
2 results
master
Select Git revision
Branches
17-add-asciidoctor-syntax-check-to-ci-tests
3-upload-docker-compose-file-with-services-in-roboticsbuilder
40-repo-is-ros-testing
45-double-pipeline-triggered-if-merge-request-has-melodic-branch-name
46-default-docker-image-name-too-long
48-python3_syntax
52-ddeploy-job-failing-when-enforcing-labels-alt-quick-dind-test
55-collision-between-test-jobs-due-to-dds-autodiscovery-ros2
58-add-yolo-pip-package-support
62-deploy-jobs-do-not-pull-files-from-lfs-custom-docker-image
62-deploy-jobs-do-not-pull-files-from-lfs-manual-lfs-pull
66-jazzy-support
68-git-lfs-error-in-ddeploy-job
add-packages
dev-image-test
master
py3-without-industrial-ci-test
split-build-and-test
test-badges
test-lfs-concept
test-use-fat-docker-image
test/13-add-clang-format-to-the-ci-tests
test/configurable-ci-setup-lookup-path
use-minimal-docker
24 results
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (1)
Use auto-rules to determine python version
· bebb6b5d
Iñigo Moreno i Caireta
authored
2 years ago
bebb6b5d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ci-templates/auto-rules/no-default.yml
+19
-0
19 additions, 0 deletions
ci-templates/auto-rules/no-default.yml
ci-templates/syntax-check.yml
+4
-4
4 additions, 4 deletions
ci-templates/syntax-check.yml
with
23 additions
and
4 deletions
ci-templates/auto-rules/no-default.yml
View file @
bebb6b5d
...
...
@@ -38,6 +38,25 @@ industrial_ci_noetic:
-
if
:
$DEFAULT_DISTRO == "noetic"
-
if
:
$BUILD_NOETIC
python3_syntax
:
extends
:
.python_syntax_template
variables
:
PYTHON_VERSION
:
python3
rules
:
-
if
:
$DEFAULT_DISTRO == "noetic"
-
if
:
$BUILD_NOETIC
python2_syntax
:
extends
:
.python_syntax_template
variables
:
PYTHON_VERSION
:
python2
rules
:
-
if
:
$DEFAULT_DISTRO == "kinetic"
-
if
:
$BUILD_KINETIC
-
if
:
$DEFAULT_DISTRO == "melodic"
-
if
:
$BUILD_MELODIC
ddeploy
:
extends
:
.ddeploy
rules
:
...
...
This diff is collapsed.
Click to expand it.
ci-templates/syntax-check.yml
View file @
bebb6b5d
...
...
@@ -5,7 +5,7 @@
clang_format
:
stage
:
.post
before_script
:
-
apk add --update bash coreutils tar wget
-
apk add --update
git
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
...
...
@@ -19,11 +19,11 @@ clang_format:
## 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
:
.
python_syntax
_template
:
before_script
:
-
apk add --update
python2
-
apk add --update
${PYTHON_VERSION}
stage
:
build
script
:
python
-m compileall -q .
script
:
${PYTHON_VERSION}
-m compileall -q .
when
:
always
##########################################################
...
...
This diff is collapsed.
Click to expand it.