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

L2SS-287: Automate package artificats for CI

parent 0317bbee
No related branches found
No related tags found
1 merge request!146L2SS-287: implement python packaging
......@@ -12,3 +12,5 @@
**/.project
**/.pydevproject
**/.settings/org.eclipse.core.resources.prefs
**/dist
**/.ipynb_checkpoints
......@@ -5,7 +5,7 @@ variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
# The PBR dependency requires a set version, not actually used
# Instead `util/lofar_git.py:get_version()` is used.
PBR_VERSION: "0.1"
# PBR_VERSION: "0.1"
cache:
paths:
- .cache/pip
......@@ -15,6 +15,7 @@ stages:
- static-analysis
- unit-tests
- integration-tests
- packaging
newline_at_eof:
stage: linting
before_script:
......@@ -70,3 +71,16 @@ integration_test:
- export HOSTNAME=$(cat /run/systemd/netif/leases/2 | grep ^ADDRESS= | awk -F'=' '{print $2}')
- echo $HOSTNAME
- 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