Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-advanced-user-tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
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
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-advanced-user-tools
Commits
1d3c2c9c
Commit
1d3c2c9c
authored
2 years ago
by
florian
Browse files
Options
Downloads
Patches
Plain Diff
TST: Add Python 3.10 to unittest pipeline
parent
b47aaa84
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!65
DOC: Added CITATION.cff to the list of files in the release guide where the...
,
!60
F python versions pipeline
Pipeline
#30303
failed
2 years ago
Stage: setup
Stage: cert
Stage: style
Stage: unittest
Stage: integrationtest
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+15
-9
15 additions, 9 deletions
.gitlab-ci.yml
with
15 additions
and
9 deletions
.gitlab-ci.yml
+
15
−
9
View file @
1d3c2c9c
...
@@ -25,7 +25,7 @@ variables:
...
@@ -25,7 +25,7 @@ variables:
CI_REGISTRY_IMAGE_BASE
:
$CI_REGISTRY/caosdb/src/caosdb-advanced-user-tools/base:latest
CI_REGISTRY_IMAGE_BASE
:
$CI_REGISTRY/caosdb/src/caosdb-advanced-user-tools/base:latest
stages
:
stages
:
-
setup
-
setup
-
cert
-
cert
-
style
-
style
...
@@ -53,15 +53,15 @@ test:
...
@@ -53,15 +53,15 @@ test:
-
time docker load < /image-cache/mariadb.tar ||
true
-
time docker load < /image-cache/mariadb.tar ||
true
-
time docker load < /image-cache/caosdb-dev.tar ||
true
-
time docker load < /image-cache/caosdb-dev.tar ||
true
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
-
EXEPATH=`pwd` CAOSDB_TAG=$CAOSDB_TAG docker-compose
-
EXEPATH=`pwd` CAOSDB_TAG=$CAOSDB_TAG docker-compose
-f .docker/docker-compose.yml up -d
-f .docker/docker-compose.yml up -d
-
cd .docker
-
cd .docker
-
/bin/sh ./run.sh
-
/bin/sh ./run.sh
-
cd ..
-
cd ..
-
docker logs docker-caosdb-server-1 &> caosdb_log.txt
-
docker logs docker-caosdb-server-1 &> caosdb_log.txt
-
docker logs docker-sqldb-1 &> mariadb_log.txt
-
docker logs docker-sqldb-1 &> mariadb_log.txt
-
docker-compose -f .docker/docker-compose.yml down
-
docker-compose -f .docker/docker-compose.yml down
-
rc=`cat .docker/result`
-
rc=`cat .docker/result`
-
exit $rc
-
exit $rc
dependencies
:
[
cert
]
dependencies
:
[
cert
]
needs
:
[
cert
]
needs
:
[
cert
]
...
@@ -76,19 +76,19 @@ build-testenv:
...
@@ -76,19 +76,19 @@ build-testenv:
tags
:
[
cached-dind
]
tags
:
[
cached-dind
]
image
:
docker:18.09
image
:
docker:18.09
stage
:
setup
stage
:
setup
# Hint: do not use only here; the image needs always to be build since it
# Hint: do not use only here; the image needs always to be build since it
# contains the repo code
# contains the repo code
#only:
#only:
script
:
script
:
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
# use here general latest or specific branch latest...
# use here general latest or specific branch latest...
-
docker build
-
docker build
--file .docker/Dockerfile
--file .docker/Dockerfile
-t $CI_REGISTRY_IMAGE .
-t $CI_REGISTRY_IMAGE .
-
docker push $CI_REGISTRY_IMAGE
-
docker push $CI_REGISTRY_IMAGE
-
docker save $CI_REGISTRY_IMAGE > /image-cache/caosdb-advanced-testenv.tar
-
docker save $CI_REGISTRY_IMAGE > /image-cache/caosdb-advanced-testenv.tar
-
cd .docker-base
-
cd .docker-base
-
docker build
-
docker build
-t $CI_REGISTRY_IMAGE_BASE .
-t $CI_REGISTRY_IMAGE_BASE .
-
docker push $CI_REGISTRY_IMAGE_BASE
-
docker push $CI_REGISTRY_IMAGE_BASE
...
@@ -142,6 +142,12 @@ unittest_py38:
...
@@ -142,6 +142,12 @@ unittest_py38:
-
pip install .
-
pip install .
-
pytest --cov=caosadvancedtools unittests
-
pytest --cov=caosadvancedtools unittests
unittests_py39
:
tags
:
[
docker
]
stage
:
unittest
image
:
python:3.10
script
:
*python_test_script
# Build the sphinx documentation and make it ready for deployment by Gitlab Pages
# Build the sphinx documentation and make it ready for deployment by Gitlab Pages
# Special job for serving a static website. See https://docs.gitlab.com/ee/ci/yaml/README.html#pages
# Special job for serving a static website. See https://docs.gitlab.com/ee/ci/yaml/README.html#pages
pages_prepare
:
&pages_prepare
pages_prepare
:
&pages_prepare
...
...
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