Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Ci Files
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
digicon-webxr-store
Ci Files
Commits
d0c2232d
Commit
d0c2232d
authored
4 years ago
by
Saralegui Vallejo, Unai
Browse files
Options
Downloads
Patches
Plain Diff
add pylint job for code checking
parent
a59485b9
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
python-packages/base.yml
+19
-0
19 additions, 0 deletions
python-packages/base.yml
python-packages/pylint.yml
+10
-0
10 additions, 0 deletions
python-packages/pylint.yml
python-packages/virtualenv.yml
+6
-15
6 additions, 15 deletions
python-packages/virtualenv.yml
with
35 additions
and
15 deletions
python-packages/base.yml
0 → 100644
+
19
−
0
View file @
d0c2232d
variables
:
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pip"
VIRTUALENV_NAME
:
"
venv"
cache
:
paths
:
-
.cache/pip
-
$VIRTUALENV_NAME/
base
:
stage
:
base
image
:
$ACR_URL/python:3.8
tags
:
-
docker
script
:
-
pip install virtualenv
# install virtualenv to create a virtual environment to install required packages
-
virtualenv $VIRTUALENV_NAME
# create a virtualenvironment
-
source $VIRTUALENV_NAME/bin/activate
# activate the virtualenvironment
-
python -V
# print python version for debugging
\ No newline at end of file
This diff is collapsed.
Click to expand it.
python-packages/pylint.yml
0 → 100644
+
10
−
0
View file @
d0c2232d
#defines the job in Static Analysis
pylint
:
stage
:
code_analysis
image
:
$ACR_URL/python:3.8
tags
:
-
docker
script
:
-
source $VIRTUALENV_NAME/bin/activate
-
pip install pylint
-
pylint -d C0301 $MODULE_FOLDER
This diff is collapsed.
Click to expand it.
python-packages/virtualenv.yml
+
6
−
15
View file @
d0c2232d
variables
:
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pip"
VIRTUALENV_NAME
:
"
venv"
cache
:
paths
:
-
.cache/pip
-
$VIRTUALENV_NAME/
virtualenv
:
virtualenv
:
stage
:
virtualenv
stage
:
dependencies
image
:
$ACR_URL/python:3.8
image
:
$ACR_URL/python:3.8
tags
:
tags
:
-
docker
-
docker
only
:
refs
:
# run only when new tag is published or changes pushed to master
-
tags
-
master
script
:
script
:
-
pip install virtualenv
# install virtualenv to create a virtual environment to install required packages
-
virtualenv $VIRTUALENV_NAME
# create a virtualenvironment
-
source $VIRTUALENV_NAME/bin/activate
# activate the virtualenvironment
-
python -V
# print python version for debugging
-
pip install -r requirements.txt --extra-index-url $ACR_PYPI_INDEX_URL
# install required packages look also in artifactory
-
pip install -r requirements.txt --extra-index-url $ACR_PYPI_INDEX_URL
# install required packages look also in artifactory
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