diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e21a0ce8166960ab82cfa312a1cb6fc0d823fa3d..6034859aa70105ce7f465e2896e2367522ee534c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,7 @@ # GitLab CI in conjunction with GitLab Runner can use Docker Engine to test and build any application. # Docker, when used with GitLab CI, runs each job in a separate and isolated container using the predefined image that is set up in .gitlab-ci.yml. # In this case we use the latest python docker image to build and test this project. -image: nexus.engageska-portugal.pt/ska-docker/ska-python-buildenv:9.3.2 +image: nexus.engageska-portugal.pt/ska-docker/ska-python-buildenv:9.3.2.1 include: - project: 'ska-telescope/templates-repository' @@ -29,7 +29,7 @@ stages: clean shell runner: stage: .pre tags: - - docker-executor + - k8srunner script: # Gitlab CI badges creation - rm -rf build/* @@ -37,7 +37,7 @@ clean shell runner: build wheel for publication: # Executed on a tag stage: build tags: - - docker-executor + - k8srunner script: - python3 setup.py egg_info -b+$CI_COMMIT_SHORT_SHA sdist bdist_wheel rules: @@ -49,7 +49,7 @@ build wheel for publication: # Executed on a tag build wheel for development: # Executed on non-tagged commit stage: build tags: - - docker-executor + - k8srunner script: - python3 setup.py egg_info -b+dev.$CI_COMMIT_SHORT_SHA sdist bdist_wheel rules: @@ -61,7 +61,7 @@ build wheel for development: # Executed on non-tagged commit unit tests: stage: test tags: - - docker-executor + - k8srunner script: - echo $(ls -d ./dist/*.whl | grep $CI_COMMIT_SHORT_SHA) - python3 -m pip install -U $(ls -d ./dist/*.whl | grep $CI_COMMIT_SHORT_SHA) @@ -74,7 +74,7 @@ unit tests: linting: stage: linting tags: - - docker-executor + - k8srunner script: - echo $(ls -d ./dist/*.whl | grep $CI_COMMIT_SHORT_SHA) - python3 -m pip install -U $(ls -d ./dist/*.whl | grep $CI_COMMIT_SHORT_SHA) @@ -86,7 +86,7 @@ linting: publish to nexus: stage: publish tags: - - docker-executor + - k8srunner variables: TWINE_USERNAME: $TWINE_USERNAME TWINE_PASSWORD: $TWINE_PASSWORD @@ -105,7 +105,7 @@ release docker image: before_script: - docker login -u $DOCKER_REGISTRY_USERNAME -p $DOCKER_REGISTRY_PASSWORD $DOCKER_REGISTRY_HOST tags: - - docker-executor + - k8srunner script: - make build - make push @@ -118,7 +118,7 @@ release docker image: pages: stage: pages tags: - - docker-executor + - k8srunner script: - cp -R build public - mv public/htmlcov/* public diff --git a/Dockerfile b/Dockerfile index 4dbff9ecae8071140a0d8803e91adfb15427b24f..aa0aa72623bb47b01a408da63681a9f5cc16f3f8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,10 @@ # Use SKA python image as base image -FROM nexus.engageska-portugal.pt/ska-docker/ska-python-buildenv:9.3.2 AS buildenv -FROM nexus.engageska-portugal.pt/ska-docker/ska-python-runtime:9.3.2 AS runtime +FROM nexus.engageska-portugal.pt/ska-docker/ska-python-buildenv:9.3.2.1 AS buildenv +FROM nexus.engageska-portugal.pt/ska-docker/ska-python-runtime:9.3.2.1 AS runtime # create ipython profile to so that itango doesn't fail if ipython hasn't run yet RUN ipython profile create -# TODO: move this dependency to ska-docker/docker/tango/ska-python-buildenv/requirements.txt -RUN python3 -m pip install --user pytest-forked - # Note: working dir is `/app` which will have a copy of our repo # The pip install will be a "user installation" so update path to access console scripts ENV PATH=/home/tango/.local/bin:$PATH