Loading csp-lmc-common/.gitlab-ci.yml +16 −16 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ # Build csp-lmc-common python package # .build_python: .build_python_common: stage: build_common dependencies: [] image: nexus.engageska-portugal.pt/ska-docker/ska-python-buildenv:latest Loading @@ -15,26 +15,26 @@ paths: - ./$BUILD_PATH/dist/ .build_python_dev: extends: .build_python .build_python_dev_common: extends: .build_python_common dependencies: [] script: - cd $BUILD_PATH - python setup.py egg_info -b+dev.$CI_COMMIT_SHORT_SHA sdist bdist_wheel .build_python_release: extends: .build_python .build_python_release_common: extends: .build_python_common script: - cd $BUILD_PATH - python setup.py sdist bdist_wheel build:csp-lmc-common_pkg_dev: # Executed on a commit extends: .build_python_dev extends: .build_python_dev_common variables: BUILD_PATH: csp-lmc-common build:csp-lmc-common_pkg: extends: .build_python_release extends: .build_python_release_common variables: BUILD_PATH: csp-lmc-common only: [master] Loading @@ -60,7 +60,7 @@ build:csp-lmc-common_image: # Test csp-lmc-common project # .test: .test_common: 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 Loading @@ -74,7 +74,7 @@ build:csp-lmc-common_image: BUILD_PATH: csp-lmc-common/docker test:csp-lmc-common: extends: .test extends: .test_common stage: test_common script: - cd $BUILD_PATH Loading @@ -84,7 +84,7 @@ test:csp-lmc-common: # Publish csp-lmc-common python package # .publish_python: .publish_python_common: stage: publish_common image: nexus.engageska-portugal.pt/ska-docker/ska-python-buildenv:latest variables: Loading @@ -96,15 +96,15 @@ test:csp-lmc-common: before_script: - pip install twine .publish_python_dev: extends: .publish_python .publish_python_dev_common: extends: .publish_python_common except: [master] script: - cd $BUILD_PATH - twine upload --repository-url $PYPI_REPOSITORY_URL dist/* || true .publish_python_release: extends: .publish_python .publish_python_release_common: extends: .publish_python_common only: [master] script: - cd $BUILD_PATH Loading @@ -112,14 +112,14 @@ test:csp-lmc-common: - twine upload --skip-existing -u $PYPI_USER -p $PYPI_PASS dist/* || true publish:csp-lmc-common_dev: extends: .publish_python_dev extends: .publish_python_dev_common dependencies: - build:csp-lmc-common_pkg_dev variables: BUILD_PATH: csp-lmc-common publish:csp-lmc-common: extends: .publish_python_release extends: .publish_python_release_common dependencies: - build:csp-lmc-common_pkg variables: Loading Loading
csp-lmc-common/.gitlab-ci.yml +16 −16 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ # Build csp-lmc-common python package # .build_python: .build_python_common: stage: build_common dependencies: [] image: nexus.engageska-portugal.pt/ska-docker/ska-python-buildenv:latest Loading @@ -15,26 +15,26 @@ paths: - ./$BUILD_PATH/dist/ .build_python_dev: extends: .build_python .build_python_dev_common: extends: .build_python_common dependencies: [] script: - cd $BUILD_PATH - python setup.py egg_info -b+dev.$CI_COMMIT_SHORT_SHA sdist bdist_wheel .build_python_release: extends: .build_python .build_python_release_common: extends: .build_python_common script: - cd $BUILD_PATH - python setup.py sdist bdist_wheel build:csp-lmc-common_pkg_dev: # Executed on a commit extends: .build_python_dev extends: .build_python_dev_common variables: BUILD_PATH: csp-lmc-common build:csp-lmc-common_pkg: extends: .build_python_release extends: .build_python_release_common variables: BUILD_PATH: csp-lmc-common only: [master] Loading @@ -60,7 +60,7 @@ build:csp-lmc-common_image: # Test csp-lmc-common project # .test: .test_common: 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 Loading @@ -74,7 +74,7 @@ build:csp-lmc-common_image: BUILD_PATH: csp-lmc-common/docker test:csp-lmc-common: extends: .test extends: .test_common stage: test_common script: - cd $BUILD_PATH Loading @@ -84,7 +84,7 @@ test:csp-lmc-common: # Publish csp-lmc-common python package # .publish_python: .publish_python_common: stage: publish_common image: nexus.engageska-portugal.pt/ska-docker/ska-python-buildenv:latest variables: Loading @@ -96,15 +96,15 @@ test:csp-lmc-common: before_script: - pip install twine .publish_python_dev: extends: .publish_python .publish_python_dev_common: extends: .publish_python_common except: [master] script: - cd $BUILD_PATH - twine upload --repository-url $PYPI_REPOSITORY_URL dist/* || true .publish_python_release: extends: .publish_python .publish_python_release_common: extends: .publish_python_common only: [master] script: - cd $BUILD_PATH Loading @@ -112,14 +112,14 @@ test:csp-lmc-common: - twine upload --skip-existing -u $PYPI_USER -p $PYPI_PASS dist/* || true publish:csp-lmc-common_dev: extends: .publish_python_dev extends: .publish_python_dev_common dependencies: - build:csp-lmc-common_pkg_dev variables: BUILD_PATH: csp-lmc-common publish:csp-lmc-common: extends: .publish_python_release extends: .publish_python_release_common dependencies: - build:csp-lmc-common_pkg variables: Loading