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

Pipelines still not working

parent 31d4aebe
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -35,9 +35,9 @@ cache:
# publish:      publish on nexus the mid and low images and the  common python package
# pages:        create the badges
stages:
  - build-common
  - test-common
  - publish-common
  - build_common
  - test_common
  - publish_common
  - build
  - test
  - linting
+11 −11
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
# 

.build_python:
  stage: build-common
  stage: build_common
  dependencies: []
  image: nexus.engageska-portugal.pt/ska-docker/ska-python-buildenv:latest
  tags:
@@ -28,12 +28,12 @@
    - cd $BUILD_PATH
    - python setup.py sdist bdist_wheel

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

build-common:csp-lmc-common_pkg:
build:csp-lmc-common_pkg:
  extends: .build_python_release
  variables:
    BUILD_PATH: csp-lmc-common
@@ -42,7 +42,7 @@ build-common:csp-lmc-common_pkg:
#
# Build csp-lmc-common image 
#
build-common: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,9 +73,9 @@ build-common:csp-lmc-common_image:
  variables:
    BUILD_PATH: csp-lmc-common/docker

test-common:csp-lmc-common:
test:csp-lmc-common:
  extends: .test
  stage: test-common
  stage: test_common
  script:
    - cd $BUILD_PATH  
    - make test
@@ -85,7 +85,7 @@ test-common:csp-lmc-common:
#

.publish_python:
  stage: publish-common
  stage: publish_common
  image: nexus.engageska-portugal.pt/ska-docker/ska-python-buildenv:latest
  variables:
    TWINE_USERNAME: $TWINE_USERNAME
@@ -111,17 +111,17 @@ test-common: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-common:csp-lmc-common_dev:
publish:csp-lmc-common_dev:
  extends: .publish_python_dev
  dependencies:
    - build-common:csp-lmc-common_pkg_dev
    - build:csp-lmc-common_pkg_dev
  variables:
    BUILD_PATH: csp-lmc-common

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

@@ -134,7 +134,7 @@ release csp-lmc-common image:
    - engageska
  stage: release
  dependencies:
    - build-common:csp-lmc-common_image
    - build:csp-lmc-common_image
  script:
    - cd $BUILD_PATH      
    - make push