Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jass
Manage
Activity
Members
Labels
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Statistical-Genetics
jass
Commits
75bc98b9
Commit
75bc98b9
authored
2 years ago
by
Bryan BRANCOTTE
Browse files
Options
Downloads
Patches
Plain Diff
test image right after building it
parent
750aa0a4
No related branches found
No related tags found
3 merge requests
!52
Bring all changes from dev into master
,
!51
merge fast-api into dev
,
!45
Deploy app in kubernetes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+30
-19
30 additions, 19 deletions
.gitlab-ci.yml
with
30 additions
and
19 deletions
.gitlab-ci.yml
+
30
−
19
View file @
75bc98b9
...
...
@@ -22,24 +22,24 @@ test-python:
]
test-backend-image
:
image
:
registry-gitlab.pasteur.fr/dsi-tools/docker-images/docker:latest
services
:
-
registry-gitlab.pasteur.fr/dsi-tools/docker-images/docker:dind
needs
:
-
build-backend
stage
:
test
script
:
-
mkdir .eggs jass.egg-info && chmod -R 777 .eggs jass.egg-info
-
touch data/initTable.hdf5
-
>
docker run
-v $(pwd)/data:/data
-v $(pwd)/projects:/projects
-v $(pwd)/.eggs:/code/.eggs
-v $(pwd)/jass.egg-info:/code/jass.egg-info
"$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG/backend:$CI_COMMIT_SHA"
python setup.py test
#
test-backend-image:
#
image: registry-gitlab.pasteur.fr/dsi-tools/docker-images/docker:latest
#
services:
#
- registry-gitlab.pasteur.fr/dsi-tools/docker-images/docker:dind
#
needs:
#
- build-backend
#
stage: test
#
script:
#
- mkdir .eggs jass.egg-info && chmod -R 777 .eggs jass.egg-info
#
- touch data/initTable.hdf5
#
- >
#
docker run
#
-v $(pwd)/data:/data
#
-v $(pwd)/projects:/projects
#
-v $(pwd)/.eggs:/code/.eggs
#
-v $(pwd)/jass.egg-info:/code/jass.egg-info
#
"$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG/backend:$CI_COMMIT_SHA"
#
python setup.py test
pages
:
...
...
@@ -121,6 +121,17 @@ build-backend:
extends
:
.build
variables
:
PATH_TAG
:
backend
after_script
:
-
mkdir .eggs jass.egg-info && chmod -R 777 .eggs jass.egg-info
-
touch data/initTable.hdf5
-
>
docker run
-v $(pwd)/data:/data
-v $(pwd)/projects:/projects
-v $(pwd)/.eggs:/code/.eggs
-v $(pwd)/jass.egg-info:/code/jass.egg-info
"$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG/${PATH_TAG}:$CI_COMMIT_SHA"
python setup.py test
build-client
:
...
...
@@ -139,7 +150,7 @@ build-client:
-
build-backend
-
build-client
-
test-python
-
test-backend-image
#
- test-backend-image
image
:
harbor.pasteur.fr/kube-system/helm-kubectl:3.4.0
script
:
# create if missing the shared pvc to save data
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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