Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
c3infodesk-deployment-role-test
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
Container 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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fejao
c3infodesk-deployment-role-test
Commits
479cd637
Commit
479cd637
authored
1 month ago
by
fejao
Browse files
Options
Downloads
Patches
Plain Diff
setting ci-cd
parent
41116748
No related branches found
Branches containing commit
No related tags found
1 merge request
!1
Adding files
Pipeline
#37644
passed
1 month ago
Stage: syntax-check
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+14
-12
14 additions, 12 deletions
.gitlab-ci.yml
with
14 additions
and
12 deletions
.gitlab-ci.yml
+
14
−
12
View file @
479cd637
...
...
@@ -39,10 +39,12 @@ stages:
-
ls -hal
-
ls -hal /builds/fejao/c3infodesk-deployment-role-test/ci-cd
-
ls -hal /builds/fejao/c3infodesk-deployment-role-test/ci-cd/python_requirements.txt
-
echo $PATH_PYTHON_REQ_FILE
# - echo $PATH_PYTHON_REQ_FILE
-
echo $PYTHON_REQ_FILE_PATH
# - pip3 install -r ci-cd/requirements.txt
-
pip3 install -r $PATH_PYTHON_REQ_FILE
# - pip3 install -r $PATH_PYTHON_REQ_FILE
-
pip3 install -r $PYTHON_REQ_FILE_PATH
### Correct the permissions on the build environment directory.
### See https://github.com/ansible/ansible/pull/42142/files
# - chmod 700 /builds/fejao/c3infodesk-deployment
...
...
@@ -57,21 +59,21 @@ stages:
###
### STAGE-SYNTAX-CHECK
###
debug
:
stage
:
syntax-check
image
:
$IMAGE_NAME_SYNTAX
script
:
-
echo "Running ansible-playbook --syntax-check tests at the role-> 'test'"
-
pwd
-
ls -hal
# - *run_syntax_check
#
debug:
#
stage: syntax-check
#
image: $IMAGE_NAME_SYNTAX
#
script:
#
- echo "Running ansible-playbook --syntax-check tests at the role-> 'test'"
#
- pwd
#
- ls -hal
#
# - *run_syntax_check
syntax-test
:
stage
:
syntax-check
image
:
$IMAGE_NAME_SYNTAX
variables
:
PATH_
PYTHON_REQ_FILE
:
$PATH_PYTHON_REQ_FILE
PATH_ENV_DIR
:
$PATH_ENV_DIR
PYTHON_REQ_FILE
_PATH
:
$PATH_PYTHON_REQ_FILE
#
PATH_ENV_DIR: $PATH_ENV_DIR
# ROLE_PATH: $PLAYBOOK_PATH_FOR_ROLE_TEST
before_script
:
-
*before_syntax_n_lint
...
...
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