Skip to content
Snippets Groups Projects
Commit 7696fed0 authored by Corné Lukken's avatar Corné Lukken
Browse files

L2SS-287: Automate package artificats for CI

parent 996414d7
No related branches found
No related tags found
No related merge requests found
...@@ -12,3 +12,5 @@ ...@@ -12,3 +12,5 @@
**/.project **/.project
**/.pydevproject **/.pydevproject
**/.settings/org.eclipse.core.resources.prefs **/.settings/org.eclipse.core.resources.prefs
**/dist
**/.ipynb_checkpoints
...@@ -5,7 +5,7 @@ variables: ...@@ -5,7 +5,7 @@ variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
# The PBR dependency requires a set version, not actually used # The PBR dependency requires a set version, not actually used
# Instead `util/lofar_git.py:get_version()` is used. # Instead `util/lofar_git.py:get_version()` is used.
PBR_VERSION: "0.1" # PBR_VERSION: "0.1"
cache: cache:
paths: paths:
- .cache/pip - .cache/pip
...@@ -15,6 +15,7 @@ stages: ...@@ -15,6 +15,7 @@ stages:
- static-analysis - static-analysis
- unit-tests - unit-tests
- integration-tests - integration-tests
- packaging
newline_at_eof: newline_at_eof:
stage: linting stage: linting
before_script: before_script:
...@@ -73,3 +74,16 @@ integration_test: ...@@ -73,3 +74,16 @@ integration_test:
- export HOSTNAME=$(cat /run/systemd/netif/leases/2 | grep ^ADDRESS= | awk -F'=' '{print $2}') - export HOSTNAME=$(cat /run/systemd/netif/leases/2 | grep ^ADDRESS= | awk -F'=' '{print $2}')
- echo $HOSTNAME - echo $HOSTNAME
- sudo $CI_PROJECT_DIR/sbin/run_integration_test.sh - sudo $CI_PROJECT_DIR/sbin/run_integration_test.sh
wheel_packaging:
stage: packaging
artifacts:
paths:
- devices/dist/*.whl
before_script:
- sudo apt-get update
- sudo apt-get install -y git
- pip3 install -r devices/test-requirements.txt
- pip3 install -r docker-compose/itango/lofar-requirements.txt
script:
- cd devices
- python setup.py bdist_wheel
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment