Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
CaosDB Python Integration Tests
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 Python Integration Tests
Commits
5f1d6888
Commit
5f1d6888
authored
5 years ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Patches
Plain Diff
test
parent
56a8fdcb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+13
-79
13 additions, 79 deletions
.gitlab-ci.yml
with
13 additions
and
79 deletions
.gitlab-ci.yml
+
13
−
79
View file @
5f1d6888
...
...
@@ -21,83 +21,17 @@
#
# ** end header
#
stages
:
-
before_script
-
setup_docker
-
setup
-
code_style
-
build
-
test
before_script
:
-
docker info
#########
# 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
:
-
touch ~/.pycaosdb.ini
-
tox -r -e py34
test:pycaosdb:py27
:
tags
:
[
py27
]
stage
:
test
script
:
-
touch ~/.pycaosdb.ini
-
tox -r -e py27
-
apt-get update -qq && apt-get install -y -qq sqlite3 libsqlite3-dev nodejs
-
ruby -v
-
which ruby
-
gem install bundler --no-document
-
bundle install --jobs $(nproc) "${FLAGS[@]}"
rspec
:
script
:
-
bundle exec rspec
rubocop
:
script
:
-
bundle exec rubocop
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