Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
emzed-ext-mzmine2
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
Container Registry
Model registry
Operate
Environments
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
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
sispub
emzed
emzed-ext-mzmine2
Commits
661002d6
Commit
661002d6
authored
4 years ago
by
schmittu
Browse files
Options
Downloads
Patches
Plain Diff
[CI] test also with unbuntu 20.04
parent
5f6a1a2e
No related branches found
No related tags found
No related merge requests found
Pipeline
#1977
canceled
4 years ago
Stage: test_code
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+21
-4
21 additions, 4 deletions
.gitlab-ci.yml
start_linux_ci_container.sh
+12
-0
12 additions, 0 deletions
start_linux_ci_container.sh
with
33 additions
and
4 deletions
.gitlab-ci.yml
+
21
−
4
View file @
661002d6
...
...
@@ -4,7 +4,7 @@ stages:
check_style
:
stage
:
test_code
image
:
sissource.ethz.ch:5005/sispub/emzed/linux_base_images/ubuntu_1
6
_10_for_emzed
image
:
sissource.ethz.ch:5005/sispub/emzed/linux_base_images/ubuntu_1
9
_10_for_emzed
tags
:
-
docker-executor
script
:
...
...
@@ -26,9 +26,26 @@ windows_tests:
-
venv/Scripts/python -c 'import emzed_ext_mzmine2 as e; e.init()'
-
venv/Scripts/pytest -s tests
linux_tests
:
ubuntu_19_10
:
stage
:
test_code
image
:
sissource.ethz.ch:5005/sispub/emzed/linux_base_images/ubuntu_19_10_for_emzed
tags
:
-
docker-executor
script
:
-
pip install --extra-index-url https://pypi-sissource.ethz.ch/simple emzed3
-
pip install -e .
-
pip install -r requirements_dev.txt
-
sleep ${SLEEP:-0}
-
python3 -c 'import emzed_ext_mzmine2 as e; e.init()'
-
pytest -s --cov src --cov-report html --cov-report term tests
artifacts
:
paths
:
-
htmlcov/
ubuntu_20_04
:
stage
:
test_code
image
:
sissource.ethz.ch:5005/sispub/emzed/linux_base_images/ubuntu_
16_10
_for_emzed
image
:
sissource.ethz.ch:5005/sispub/emzed/linux_base_images/ubuntu_
20_04
_for_emzed
tags
:
-
docker-executor
script
:
...
...
@@ -54,4 +71,4 @@ update_docs:
-
master
when
:
manual
dependencies
:
-
linux_tests
-
ubuntu_20_04
This diff is collapsed.
Click to expand it.
start_linux_ci_container.sh
0 → 100755
+
12
−
0
View file @
661002d6
#!/usr/bin/env bash
exec
3< <
(
gitlab-runner
exec
docker
--env
SLEEP
=
99999
--timeout
99999
${
1
:-
ubuntu_20_04
}
)
while
true
;
do
read
<&3 line
;
echo
"
$line
"
;
if
[[
"
$line
"
==
*
'sleep ${SLEEP:-0}'
*
]]
;
then
break
fi
done
ID
=
$(
docker ps |
grep
runner |
grep
concurrent |
grep
build |
cut
-d
" "
-f
1
)
docker
exec
-it
${
ID
}
bash
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