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
23ff7757
Verified
Commit
23ff7757
authored
2 years ago
by
Daniel Hornung
Browse files
Options
Downloads
Patches
Plain Diff
WIP: Rename caosdb -> linkahead
parent
4a122dd9
No related branches found
No related tags found
1 merge request
!79
MAINT: linkahead rename
Pipeline
#36690
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
+14
-12
14 additions, 12 deletions
.gitlab-ci.yml
with
14 additions
and
12 deletions
.gitlab-ci.yml
+
14
−
12
View file @
23ff7757
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
# along with this program. If not, see <https://www.gnu.org/licenses/>.
variables
:
variables
:
# TODO rename to linkahead
CI_REGISTRY_IMAGE
:
$CI_REGISTRY/caosdb/src/caosdb-advanced-user-tools/testenv:latest
CI_REGISTRY_IMAGE
:
$CI_REGISTRY/caosdb/src/caosdb-advanced-user-tools/testenv:latest
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
...
@@ -45,20 +46,20 @@ test:
...
@@ -45,20 +46,20 @@ test:
stage
:
integrationtest
stage
:
integrationtest
image
:
$CI_REGISTRY_IMAGE_BASE
image
:
$CI_REGISTRY_IMAGE_BASE
script
:
script
:
-
if [[ "$
CAOSDB
_TAG" == "" ]]; then
-
if [[ "$
LINKAHEAD
_TAG" == "" ]]; then
CAOSDB
_TAG=dev;
LINKAHEAD
_TAG=dev;
fi
fi
-
echo $
CAOSDB
_TAG
-
echo $
LINKAHEAD
_TAG
-
time docker load < /image-cache/
caosdb
-advanced-testenv.tar ||
true
-
time docker load < /image-cache/
linkahead
-advanced-testenv.tar ||
true
-
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/
linkahead
-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`
LINKAHEAD_TAG=$LINKAHEAD
_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-
linkahead
-server-1 &>
linkahead
_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`
...
@@ -67,7 +68,7 @@ test:
...
@@ -67,7 +68,7 @@ test:
needs
:
[
cert
]
needs
:
[
cert
]
artifacts
:
artifacts
:
paths
:
paths
:
-
caosdb
_log.txt
-
linkahead
_log.txt
-
mariadb_log.txt
-
mariadb_log.txt
when
:
on_failure
when
:
on_failure
expire_in
:
1 week
expire_in
:
1 week
...
@@ -86,7 +87,7 @@ build-testenv:
...
@@ -86,7 +87,7 @@ build-testenv:
--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/
linkahead
-advanced-testenv.tar
-
cd .docker-base
-
cd .docker-base
-
docker build
-
docker build
-t $CI_REGISTRY_IMAGE_BASE .
-t $CI_REGISTRY_IMAGE_BASE .
...
@@ -103,7 +104,7 @@ cert:
...
@@ -103,7 +104,7 @@ cert:
expire_in
:
1 week
expire_in
:
1 week
script
:
script
:
-
cd .docker
-
cd .docker
-
CAOSHOSTNAME=
caosdb
-server ./cert.sh
-
CAOSHOSTNAME=
linkahead
-server ./cert.sh
style
:
style
:
tags
:
[
docker
]
tags
:
[
docker
]
...
@@ -131,18 +132,19 @@ unittest_py39:
...
@@ -131,18 +132,19 @@ unittest_py39:
script
:
script
:
# First verify that system Python actually is 3.9
# First verify that system Python actually is 3.9
-
python3 -c "import sys; assert sys.version.startswith('3.9')"
-
python3 -c "import sys; assert sys.version.startswith('3.9')"
-
python3 -c "import
caosdb; print('CaosDB
Version:',
caosdb
.__version__)"
-
python3 -c "import
linkahead; print('Linkahead
Version:',
linkahead
.__version__)"
-
tox
-
tox
unittest_py37
:
unittest_py37
:
tags
:
[
docker
]
tags
:
[
docker
]
stage
:
unittest
stage
:
unittest
image
:
python:3.7
image
:
python:3.7
# TODO rename to linkahead
script
:
&python_test_script
script
:
&python_test_script
-
pip install nose pandas pytest pytest-cov gitignore-parser openpyxl>=3.0.7 xlrd==1.2 h5py
-
pip install nose pandas pytest pytest-cov gitignore-parser openpyxl>=3.0.7 xlrd==1.2 h5py
-
pip install git+https://gitlab.indiscale.com/caosdb/src/caosdb-pylib.git@dev
-
pip install git+https://gitlab.indiscale.com/caosdb/src/caosdb-pylib.git@dev
-
pip install .
-
pip install .
-
pytest --cov=
caos
advancedtools unittests
-
pytest --cov=
linkahead
advancedtools unittests
unittest_py38
:
unittest_py38
:
tags
:
[
docker
]
tags
:
[
docker
]
...
...
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