Skip to content
Snippets Groups Projects
Verified Commit 23ff7757 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

WIP: Rename caosdb -> linkahead

parent 4a122dd9
No related branches found
No related tags found
1 merge request!79MAINT: linkahead rename
Pipeline #36690 failed
...@@ -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=caosadvancedtools unittests - pytest --cov=linkaheadadvancedtools unittests
unittest_py38: unittest_py38:
tags: [docker] tags: [docker]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment