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
0dd2a84b
Commit
0dd2a84b
authored
1 year ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Patches
Plain Diff
revert pipeline stuff
parent
76b0562d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!89
ENH: JsonSchemaExporter accepts do_not_create parameter.
,
!80
F simple schema export
Pipeline
#42390
failed
1 year 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
+2
-89
2 additions, 89 deletions
.gitlab-ci.yml
with
2 additions
and
89 deletions
.gitlab-ci.yml
+
2
−
89
View file @
0dd2a84b
...
...
@@ -33,92 +33,6 @@ stages:
-
integrationtest
-
deploy
.env
:
&env
-
PYLIB=${TMP_PYLIB:-$PYLIB}
-
PYINT=${TMP_PYINT:-$PYINT}
-
CPPINT=${TMP_CPPINT:-$CPPINT}
-
CPPLIB=${TMP_CPPLIB:-$CPPLIB}
-
SERVER=${TMP_SERVER:-$SERVER}
-
WEBUI=${TMP_WEBUI:-$WEBUI}
-
MYSQLBACKEND=${TMP_MYSQLBACKEND:-$MYSQLBACKEND}
-
echo "F_BRANCH = $F_BRANCH"
-
echo "SERVER = $SERVER"
-
echo "MYSQLBACKEND = $MYSQLBACKEND"
-
echo "CPPINT = $CPPINT"
-
echo "CPPLIB = $CPPLIB"
-
echo "PYINT = $PYINT"
-
echo "PYLIB = $PYLIB"
-
echo "ADVANCEDUSERTOOLS = $ADVANCEDUSERTOOLS"
setup-env
:
stage
:
setup
tags
:
[
cached-dind
]
needs
:
[
]
image
:
python:3
script
:
# Calculate the values first.
-
*env
-
pip install requests
-
if [ "${CI_COMMIT_REF_NAME:0:8}" == release- ] ; then
echo "Release branch detected, setting default F_BRANCH to 'main'.";
F_BRANCH="${F_BRANCH:-main}";
fi
-
F_BRANCH=${F_BRANCH:-$CI_COMMIT_REF_NAME}
-
if [ "$F_BRANCH" == "main" ] && [ "$CI_COMMIT_REF_NAME" != "main" ] ; then
DEFAULT_BRANCH=main
F_BRANCH=;
REFTAG="${CI_COMMIT_REF_NAME}_F_main";
elif [ "$F_BRANCH" != "$CI_COMMIT_REF_NAME" ] && echo "$F_BRANCH" | grep -c "^f-" ; then
REFTAG="${CI_COMMIT_REF_NAME}_F_${F_BRANCH}";
elif echo "$CI_COMMIT_REF_NAME" | grep -c "^f-" ; then
F_BRANCH="${CI_COMMIT_REF_NAME}";
REFTAG="${CI_COMMIT_REF_NAME}";
else
F_BRANCH=;
REFTAG="${CI_COMMIT_REF_NAME}";
fi
-
if [ "${CI_COMMIT_REF_NAME}" == "main" ]; then
DEFAULT_BRANCH=main;
fi
-
DEFAULT_BRANCH=${DEFAULT_BRANCH:-dev}
# if this is main, default to other main branches.
-
echo "DEFAULT_BRANCH = $DEFAULT_BRANCH"
-
echo "CI_COMMIT_REF_NAME = $CI_COMMIT_REF_NAME"
-
echo "REFTAG = $REFTAG"
-
echo "F_BRANCH = $F_BRANCH"
# determine branch for caosdb-pylib (specific branch, f-branch or dev)
-
echo "PYLIB REF = $PYLIB"
-
if [ "$PYLIB" == "" ] && [ "$F_BRANCH" != "" ] && ./utils/branch_exists.py PYLIB "$F_BRANCH" ; then
PYLIB="$F_BRANCH";
fi
-
PYLIB=${PYLIB:-$DEFAULT_BRANCH}
-
if [ "$PYLIB" != "$DEFAULT_BRANCH" ] && [ "$PYLIB" != "$F_BRANCH" ] ; then
REFTAG="${REFTAG}_P_${PYLIB}";
fi
-
echo "PYLIB REF = $PYLIB"
# convert branch to commit
-
PYLIB=`./utils/ref_to_commit.py PYLIB $PYLIB`;
-
echo "PYLIB COMMIT = $PYLIB"
# determine branch for caosdb-pyinttest (specific branch, f-branch or dev)
-
echo "PYINT REF = $PYINT"
-
if [ "$PYINT" == "" ] && [ "$F_BRANCH" != "" ] && ./utils/branch_exists.py PYINT "$F_BRANCH" ; then
PYINT="$F_BRANCH";
fi
-
PYINT=${PYINT:-$DEFAULT_BRANCH}
-
if [ "$PYINT" != "$DEFAULT_BRANCH" ] && [ "$PYINT" != "$F_BRANCH" ] ; then
REFTAG="${REFTAG}_IP_${PYINT}";
fi
-
echo "PYINT REF = $PYINT"
-
echo "REFTAG = $REFTAG"
test
:
tags
:
[
docker
]
services
:
...
...
@@ -213,9 +127,8 @@ unittest_py39:
tags
:
[
docker
]
stage
:
unittest
image
:
$CI_REGISTRY_IMAGE
needs
:
[
build-testenv
,
setup-env
]
needs
:
[
build-testenv
]
script
:
-
*env
# First verify that system Python actually is 3.9
-
python3 -c "import sys; assert sys.version.startswith('3.9')"
-
python3 -c "import linkahead; print('LinkAhead Version:', linkahead.__version__)"
...
...
@@ -227,7 +140,7 @@ unittest_py37:
image
:
python:3.7
script
:
&python_test_script
-
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@
$PYLIB
-
pip install git+https://gitlab.indiscale.com/caosdb/src/caosdb-pylib.git@
dev
-
pip install .
-
pytest --cov=caosadvancedtools unittests
...
...
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