Commit 23f71b0b authored by Elisabetta Giani's avatar Elisabetta Giani
Browse files

fix_artifacts: linting issues

parent e8daf7a5
Loading
Loading
Loading
Loading
Loading
+15 −15
Original line number Diff line number Diff line
@@ -13,30 +13,30 @@
    - engageska
  artifacts:
    paths:
      - ./$BUILD_PATH/dist/
      - ./$COMMON_BUILD_PATH/dist/

.build_python_dev_common:
  extends: .build_python_common
  dependencies: []
  script:
    - cd $BUILD_PATH
    - cd $COMMON_BUILD_PATH
    - python setup.py egg_info -b+dev.$CI_COMMIT_SHORT_SHA sdist bdist_wheel

.build_python_release_common:
  extends: .build_python_common
  script:
    - cd $BUILD_PATH
    - cd $COMMON_BUILD_PATH
    - python setup.py egg_info -b+$CI_COMMIT_SHORT_SHA sdist bdist_wheel

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

build:csp-lmc-common_pkg:
  extends: .build_python_release_common
  variables:
    BUILD_PATH: csp-lmc-common
    COMMON_BUILD_PATH: csp-lmc-common
  only: [master]

#
@@ -51,10 +51,10 @@ build:csp-lmc-common_image:
    - engageska
  stage: build_common
  script:
    - cd $BUILD_PATH      
    - cd $COMMON_BUILD_PATH      
    - make build
  variables:
    BUILD_PATH: csp-lmc-common/docker
    COMMON_BUILD_PATH: csp-lmc-common/docker

#  
# Test csp-lmc-common project
@@ -68,15 +68,15 @@ build:csp-lmc-common_image:
    - docker-executor
  artifacts:
    paths:
      - ./$BUILD_PATH/build/
      - ./$COMMON_BUILD_PATH/build/
  variables:
    BUILD_PATH: csp-lmc-common/docker
    COMMON_BUILD_PATH: csp-lmc-common/docker

test:csp-lmc-common:
  extends: .test_common
  stage: test_common
  script:
    - cd $BUILD_PATH  
    - cd $COMMON_BUILD_PATH  
    - make test
      #
# linting stage
@@ -87,7 +87,7 @@ test:csp-lmc-common:
  script:
    - apt-get -y update
    - apt-get install -y python3-pip python3-setuptools python3-wheel --no-install-recommends
    - cd $BUILD_PATH  
    - cd $COMMON_BUILD_PATH  
    - make lint

linting:csp-lmc-common:
@@ -113,7 +113,7 @@ linting:csp-lmc-common:
  extends: .publish_python_common
  only: [master]
  script:
    - cd $BUILD_PATH
    - cd $COMMON_BUILD_PATH
    - twine upload --repository-url $PYPI_REPOSITORY_URL dist/* || true
    - twine upload --skip-existing -u $PYPI_USER -p $PYPI_PASS dist/* || true

@@ -122,7 +122,7 @@ publish:csp-lmc-common:
  dependencies:
    - build:csp-lmc-common_pkg
  variables:
    BUILD_PATH: csp-lmc-common
    COMMON_BUILD_PATH: csp-lmc-common

#
# Release csp-lmc-common image on nexus
@@ -134,11 +134,11 @@ release csp-lmc-common image:
  dependencies:
    - build:csp-lmc-common_image
  script:
    - cd $BUILD_PATH      
    - cd $COMMON_BUILD_PATH      
    - make push
  when: manual
  only:
    refs:
      - master
  variables:
    BUILD_PATH: csp-lmc-common/docker
    COMMON_BUILD_PATH: csp-lmc-common/docker