Skip to content
Snippets Groups Projects
Commit 652ae1c4 authored by Daniel Lyons's avatar Daniel Lyons
Browse files

Merge branch 'fixing-build' into '2.8.2-DEVELOPMENT'

Another try, this time without Poetry for the "install" step and only for the...

See merge request !1372
parents 2be3c00b d16a43ed
No related branches found
No related tags found
2 merge requests!1452Merge 2.8.2 to main,!1372Another try, this time without Poetry for the "install" step and only for the...
Pipeline #9995 failed
stages:
- pull-db
- build-pexes
- build-packages
- build
- unit-test
- test-coverage
......@@ -56,150 +56,150 @@ pull db image:
###############################################
build carta envoy:
interruptible: true
stage: build-pexes
stage: build-packages
variables:
PEX_PATH: "apps/cli/executables/pexable/carta_envoy"
extends: .build-pexes
PACKAGE_PATH: "apps/cli/executables/pexable/carta_envoy"
extends: .build-package
only:
changes:
- "apps/cli/executables/pexable/carta_envoy/**/*"
build casa envoy:
interruptible: true
stage: build-pexes
stage: build-packages
variables:
PEX_PATH: "apps/cli/executables/pexable/casa_envoy"
extends: .build-pexes
PACKAGE_PATH: "apps/cli/executables/pexable/casa_envoy"
extends: .build-package
only:
changes:
- "apps/cli/executables/pexable/casa_envoy/**/*"
build core sampler:
interruptible: true
stage: build-pexes
stage: build-packages
variables:
PEX_PATH: "apps/cli/utilities/core_sampler"
extends: .build-pexes
PACKAGE_PATH: "apps/cli/utilities/core_sampler"
extends: .build-package
only:
changes:
- "apps/cli/utilities/core_sampler/**/*"
build conveyor:
interruptible: true
stage: build-pexes
stage: build-packages
variables:
PEX_PATH: "apps/cli/executables/pexable/conveyor"
extends: .build-pexes
PACKAGE_PATH: "apps/cli/executables/pexable/conveyor"
extends: .build-package
only:
changes:
- "apps/cli/executables/pexable/conveyor/**/*"
build deliver:
interruptible: true
stage: build-pexes
stage: build-packages
variables:
PEX_PATH: "apps/cli/executables/pexable/deliver"
extends: .build-pexes
PACKAGE_PATH: "apps/cli/executables/pexable/deliver"
extends: .build-package
only:
changes:
- "apps/cli/executables/pexable/deliver/**/*"
build ingest:
interruptible: true
stage: build-pexes
stage: build-packages
variables:
PEX_PATH: "apps/cli/executables/pexable/ingest"
extends: .build-pexes
PACKAGE_PATH: "apps/cli/executables/pexable/ingest"
extends: .build-package
only:
changes:
- "apps/cli/executables/pexable/ingest/**/*"
build ingest envoy:
interruptible: true
stage: build-pexes
stage: build-packages
variables:
PEX_PATH: "apps/cli/executables/pexable/ingest_envoy"
extends: .build-pexes
PACKAGE_PATH: "apps/cli/executables/pexable/ingest_envoy"
extends: .build-package
only:
changes:
- "apps/cli/executables/pexable/ingest_envoy/**/*"
build mediator:
interruptible: true
stage: build-pexes
stage: build-packages
variables:
PEX_PATH: "apps/cli/executables/pexable/mediator"
extends: .build-pexes
PACKAGE_PATH: "apps/cli/executables/pexable/mediator"
extends: .build-package
only:
changes:
- "apps/cli/executables/pexable/mediator/**/*"
build null:
interruptible: true
stage: build-pexes
stage: build-packages
variables:
PEX_PATH: "apps/cli/executables/pexable/null"
extends: .build-pexes
PACKAGE_PATH: "apps/cli/executables/pexable/null"
extends: .build-package
only:
changes:
- "apps/cli/executables/pexable/null/**/*"
build productfetcher:
interruptible: true
stage: build-pexes
stage: build-packages
variables:
PEX_PATH: "apps/cli/executables/pexable/productfetcher"
extends: .build-pexes
PACKAGE_PATH: "apps/cli/executables/pexable/productfetcher"
extends: .build-package
only:
changes:
- "apps/cli/executables/pexable/productfetcher/**/*"
build update stage:
interruptible: true
stage: build-pexes
stage: build-packages
variables:
PEX_PATH: "apps/cli/executables/pexable/update_stage"
extends: .build-pexes
PACKAGE_PATH: "apps/cli/executables/pexable/update_stage"
extends: .build-package
only:
changes:
- "apps/cli/executables/pexable/update_stage/**/*"
build vela:
interruptible: true
stage: build-pexes
stage: build-packages
variables:
PEX_PATH: "apps/cli/executables/pexable/vela"
extends: .build-pexes
PACKAGE_PATH: "apps/cli/executables/pexable/vela"
extends: .build-package
only:
changes:
- "apps/cli/executables/pexable/vela/**/*"
build wf inspector:
interruptible: true
stage: build-pexes
stage: build-packages
variables:
PEX_PATH: "apps/cli/executables/pexable/wf_inspector"
extends: .build-pexes
PACKAGE_PATH: "apps/cli/executables/pexable/wf_inspector"
extends: .build-package
only:
changes:
- "apps/cli/executables/pexable/wf_inspector/**/*"
build ws annihilator:
interruptible: true
stage: build-pexes
stage: build-packages
variables:
PEX_PATH: "apps/cli/executables/pexable/ws_annihilator"
extends: .build-pexes
PACKAGE_PATH: "apps/cli/executables/pexable/ws_annihilator"
extends: .build-package
only:
changes:
- "apps/cli/executables/pexable/ws_annihilator/**/*"
build ws metrics:
interruptible: true
stage: build-pexes
stage: build-packages
variables:
PEX_PATH: "apps/cli/executables/pexable/ws_metrics"
extends: .build-pexes
PACKAGE_PATH: "apps/cli/executables/pexable/ws_metrics"
extends: .build-package
only:
changes:
- "apps/cli/executables/pexable/ws_metrics/**/*"
......
# CI Build Template
.build-pexes:
.build-package:
image: python:3.10
script:
- pip install build twine poetry pytest
# Enter the package directory
- WD=$PWD
- cd ${PEX_PATH}
- poetry install --with test
- cd ${PACKAGE_PATH}
# Install build, poetry and pytest
- pip install build poetry pytest
# Install the package for testing
- pip install .
- CAPO_PROFILE=docker pytest test
# Build the package and push to the gitlab repo
- poetry build
- $(poetry env info -p)/bin/pytest test
- poetry config repositories.gitlab "https://gitlab.nrao.edu/api/v4/projects/$CI_PROJECT_ID/packages/pypi"
- poetry config http-basic.gitlab gitlab-ci-token "$CI_JOB_TOKEN"
- poetry publish --repository gitlab
# Return to the parent directory
- cd $WD
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment