Commit c1a6baec authored by Elisabetta Giani's avatar Elisabetta Giani
Browse files

Try to setup properly the stages for common package.

parent 7bedb7d6
Loading
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -28,12 +28,12 @@
    - cd $BUILD_PATH
    - python setup.py sdist bdist_wheel

build:csp-lmc-common_pkg_dev: # Executed on a commit
build-common:csp-lmc-common_pkg_dev: # Executed on a commit
  extends: .build_python_dev
  variables:
    BUILD_PATH: csp-lmc-common

build:csp-lmc-common_pkg:
build-common:csp-lmc-common_pkg:
  extends: .build_python_release
  variables:
    BUILD_PATH: csp-lmc-common
@@ -42,7 +42,7 @@ build:csp-lmc-common_pkg:
#
# Build csp-lmc-common image 
#
build:csp-lmc-common_image:
build-common:csp-lmc-common_image:
  image: nexus.engageska-portugal.pt/ska-docker/tango-builder:latest
  before_script:
  - docker login -u $DOCKER_REGISTRY_USERNAME -p $DOCKER_REGISTRY_PASSWORD $DOCKER_REGISTRY_HOST
@@ -73,7 +73,7 @@ build:csp-lmc-common_image:
  variables:
    BUILD_PATH: csp-lmc-common/docker

test:csp-lmc-common:
test-common:csp-lmc-common:
  extends: .test
  stage: test-common
  script:
@@ -111,17 +111,17 @@ test:csp-lmc-common:
    - twine upload --repository-url $PYPI_REPOSITORY_URL dist/* || true
    - twine upload --skip-existing -u $PYPI_USER -p $PYPI_PASS dist/* || true

publish:csp-lmc-common_dev:
publish-common:csp-lmc-common_dev:
  extends: .publish_python_dev
  dependencies:
    - build:csp-lmc-common_pkg_dev
    - build-common:csp-lmc-common_pkg_dev
  variables:
    BUILD_PATH: csp-lmc-common

publish:csp-lmc-common:
  extends: .publish_python_release
  dependencies:
    - build:csp-lmc-common_pkg
    - build-common:csp-lmc-common_pkg
  variables:
    BUILD_PATH: csp-lmc-common