Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-pylib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-pylib
Commits
dd527df1
Commit
dd527df1
authored
6 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
DEV: Added .gitlab-ci.yml
parent
060ab961
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
.gitlab-ci.yml
+107
-0
107 additions, 0 deletions
.gitlab-ci.yml
with
108 additions
and
0 deletions
.gitignore
+
1
−
0
View file @
dd527df1
# dot files
.*
!/.gitignore
!/.gitlab-ci.yml
# compiled python and dist stuff
*.egg
...
...
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
0 → 100644
+
107
−
0
View file @
dd527df1
#
# ** header v3.0
# This file is a part of the CaosDB Project.
#
# Copyright (C) 2018 Research Group Biomedical Physics,
# Max-Planck-Institute for Dynamics and Self-Organization Göttingen
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
# ** end header
#
stages
:
-
setup
-
code_style
-
build
-
test
#########
# Setup
#########
# install formatters
setup:install_formatters:python2.7
:
tags
:
[
py27
]
stage
:
setup
script
:
-
pip2 install --upgrade pycodestyle --user
setup:install_formatters:python3.4
:
tags
:
[
py34
]
stage
:
setup
script
:
-
pip3.4 install --upgrade pycodestyle --user
############
# code_style
############
code_style:pycodestyle:python2.7
:
tags
:
[
py27
]
stage
:
code_style
script
:
-
~/.local/bin/pycodestyle --count ./
code_style:pycodestyle:python3.4
:
tags
:
[
py34
]
stage
:
code_style
script
:
-
~/.local/bin/pycodestyle --count ./
#########
# Build
#########
# install python client (python 2.7)
build:pycaosdb:python2.7
:
tags
:
[
py27
]
stage
:
build
script
:
-
python2.7 setup.py install --user
# install python client (python 3.4)
build:pycaosdb:python3.4
:
tags
:
[
py34
]
stage
:
build
script
:
-
python3.4 setup.py install --user
########
# Test
########
# unit tests for pycaosdb
test:pycaosdb:py34
:
tags
:
[
py34
]
stage
:
test
script
:
-
py.test-3.4
test:pycaosdb:py27
:
tags
:
[
py27
]
stage
:
test
script
:
-
py.test-2.7
# pylint tests for pycaosdb (python 3.4)
.test:pycaosdb:python3.4:pylint
:
stage
:
test
script
:
-
/usr/bin/env python3.4 /home/caosdb/.local/bin/pylint --unsafe-load-any-extension=y -d all -e E,F client/PyCaosDB/caosdb/common/models.py
# pylint tests for pycaosdb (python 2.7)
.test:pycaosdb:python2.7:pylint
:
stage
:
test
script
:
-
/usr/bin/env python2.7 /home/caosdb/.local/bin/pylint --unsafe-load-any-extension=y -d all -e E,F client/PyCaosDB/caosdb/common/models.py
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