Loading .gitlab-ci.yml +16 −0 Original line number Diff line number Diff line Loading @@ -56,6 +56,22 @@ clean shell runner: script: # Gitlab CI badges creation - rm -rf build/* # # Pages # pages: stage: pages dependencies: - test_common - test script: - ls -la - cp -R build public - mv build/htmlcov/* public artifacts: paths: - public expire_in: 30 days create ci metrics: stage: .post Loading csp-lmc-common/docker/test-harness/Makefile +1 −1 Original line number Diff line number Diff line Loading @@ -29,7 +29,7 @@ lint: pip3 install pylint2junit; \ mkdir -p /build/reports; \ cd /app && pylint --output-format=parseable csp_lmc_common | tee /build/csp_lmc_common_code_analysis.stdout; \ cd /app && pylint --output-format=pylint2junit.JunitReporter csp_lmc_common > /build/reports/cspl_lmc_common_linting.xml; cd /app && pylint --output-format=pylint2junit.JunitReporter csp_lmc_common > /build/reports/csp_lmc_common_linting.xml; .PHONY: all test lint csp-lmc-mid/.gitlab-ci.yml +2 −39 Original line number Diff line number Diff line Loading @@ -14,24 +14,13 @@ paths: - ./$BUILD_PATH/dist/ .build_python_dev: extends: .build_python 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 script: - cd $BUILD_PATH - python setup.py egg_info -b+$CI_COMMIT_SHORT_SHA sdist bdist_wheel - python setup.py sdist bdist_wheel build:csp-lmc-mid_pkg_dev: # Executed on a commit extends: .build_python_dev variables: BUILD_PATH: csp-lmc-mid build:csp-lmc-mid_pkg: extends: .build_python_release variables: Loading Loading @@ -83,7 +72,7 @@ build:csp-lmc-mid_image: - docker-executor artifacts: paths: - build - ./$BUILD_PATH/build/ variables: BUILD_PATH: csp-lmc-mid/docker Loading Loading @@ -148,32 +137,6 @@ publish:csp-lmc-mid: variables: BUILD_PATH: csp-lmc-mid # # Pages # pages:csp-lmc-mid: 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 tags: - docker-executor stage: pages dependencies: - test:csp-lmc-mid only: - master script: - cd $BUILD_PATH - ls -la - cp -R build public - mv build/htmlcov/* public artifacts: paths: - public expire_in: 30 days variables: BUILD_PATH: csp-lmc-mid/docker # # Release csp-lmc-mid image on nexus # Loading csp-lmc-mid/docker/test-harness/Makefile +3 −3 Original line number Diff line number Diff line Loading @@ -22,13 +22,13 @@ test: mkdir -p /build/reports && \ if [ -d /build ]; then \ mv /app/setup_py_test.stdout /build/mid_csp_lmc_setup_test.stdout; \ mv /app/htmlcov /build/csp_master_htmlcov; \ mv /app/htmlcov /build/mid_csp_lmc_htmlcov; \ mv /app/coverage.xml /build/mid_csp_lmc_coverage.xml; \ fi; lint: pip3 install pylint2junit; \ mkdir -p /build/reports; \ cd /app && pylint --output-format=parseable csp_lmc_mid | tee /build/code_analysis.stdout; \ cd /app && pylint --output-format=pylint2junit.JunitReporter csp_lmc_mid > /build/reports/linting.xml; cd /app && pylint --output-format=parseable csp_lmc_mid | tee /build/mid_csp_lmc_code_analysis.stdout; \ cd /app && pylint --output-format=pylint2junit.JunitReporter csp_lmc_mid > /build/reports/mid_csp_lmc_linting.xml; .PHONY: all test lint Loading
.gitlab-ci.yml +16 −0 Original line number Diff line number Diff line Loading @@ -56,6 +56,22 @@ clean shell runner: script: # Gitlab CI badges creation - rm -rf build/* # # Pages # pages: stage: pages dependencies: - test_common - test script: - ls -la - cp -R build public - mv build/htmlcov/* public artifacts: paths: - public expire_in: 30 days create ci metrics: stage: .post Loading
csp-lmc-common/docker/test-harness/Makefile +1 −1 Original line number Diff line number Diff line Loading @@ -29,7 +29,7 @@ lint: pip3 install pylint2junit; \ mkdir -p /build/reports; \ cd /app && pylint --output-format=parseable csp_lmc_common | tee /build/csp_lmc_common_code_analysis.stdout; \ cd /app && pylint --output-format=pylint2junit.JunitReporter csp_lmc_common > /build/reports/cspl_lmc_common_linting.xml; cd /app && pylint --output-format=pylint2junit.JunitReporter csp_lmc_common > /build/reports/csp_lmc_common_linting.xml; .PHONY: all test lint
csp-lmc-mid/.gitlab-ci.yml +2 −39 Original line number Diff line number Diff line Loading @@ -14,24 +14,13 @@ paths: - ./$BUILD_PATH/dist/ .build_python_dev: extends: .build_python 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 script: - cd $BUILD_PATH - python setup.py egg_info -b+$CI_COMMIT_SHORT_SHA sdist bdist_wheel - python setup.py sdist bdist_wheel build:csp-lmc-mid_pkg_dev: # Executed on a commit extends: .build_python_dev variables: BUILD_PATH: csp-lmc-mid build:csp-lmc-mid_pkg: extends: .build_python_release variables: Loading Loading @@ -83,7 +72,7 @@ build:csp-lmc-mid_image: - docker-executor artifacts: paths: - build - ./$BUILD_PATH/build/ variables: BUILD_PATH: csp-lmc-mid/docker Loading Loading @@ -148,32 +137,6 @@ publish:csp-lmc-mid: variables: BUILD_PATH: csp-lmc-mid # # Pages # pages:csp-lmc-mid: 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 tags: - docker-executor stage: pages dependencies: - test:csp-lmc-mid only: - master script: - cd $BUILD_PATH - ls -la - cp -R build public - mv build/htmlcov/* public artifacts: paths: - public expire_in: 30 days variables: BUILD_PATH: csp-lmc-mid/docker # # Release csp-lmc-mid image on nexus # Loading
csp-lmc-mid/docker/test-harness/Makefile +3 −3 Original line number Diff line number Diff line Loading @@ -22,13 +22,13 @@ test: mkdir -p /build/reports && \ if [ -d /build ]; then \ mv /app/setup_py_test.stdout /build/mid_csp_lmc_setup_test.stdout; \ mv /app/htmlcov /build/csp_master_htmlcov; \ mv /app/htmlcov /build/mid_csp_lmc_htmlcov; \ mv /app/coverage.xml /build/mid_csp_lmc_coverage.xml; \ fi; lint: pip3 install pylint2junit; \ mkdir -p /build/reports; \ cd /app && pylint --output-format=parseable csp_lmc_mid | tee /build/code_analysis.stdout; \ cd /app && pylint --output-format=pylint2junit.JunitReporter csp_lmc_mid > /build/reports/linting.xml; cd /app && pylint --output-format=parseable csp_lmc_mid | tee /build/mid_csp_lmc_code_analysis.stdout; \ cd /app && pylint --output-format=pylint2junit.JunitReporter csp_lmc_mid > /build/reports/mid_csp_lmc_linting.xml; .PHONY: all test lint