Skip to content
Snippets Groups Projects
Commit 75bc98b9 authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

test image right after building it

parent 750aa0a4
No related branches found
No related tags found
3 merge requests!52Bring all changes from dev into master,!51merge fast-api into dev,!45Deploy app in kubernetes
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment