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

L2SS-240: Integration test script and CI

parent 0a8645a0
No related branches found
No related tags found
1 merge request!89Resolve L2SS-240 "Integration testing"
......@@ -15,6 +15,7 @@ stages:
- linting
- static-analysis
- unit-tests
- integration-tests
linting:
stage: linting
script:
......@@ -34,3 +35,12 @@ unit_test:
script:
- cd devices
- tox -e py37
integration_test:
stage: integration-tests
image: docker:19.03.12
services:
- docker:19.03.12-dind
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- ./sbin/run_integration_test.sh
#!/bin/bash
# Check if lofar20rc.sh is sourced and environment variables are set.
if [ -z "$LOFAR20_DIR" ]; then
echo "\$LOFAR20_DIR is unset or blank, is lofar20rc.sh sourced correctly?"
exit 1
fi
# Start all required containers
cd "$LOFAR20_DIR/docker-compose" || exit 1
make start databaseds dsconfig device-sdp device-pcc jupyter elk sdptr-sim pypcc-sim
# Update the dsconfig
cd "$TANGO_LOFAR_LOCAL_DIR" || exit 1
sbin/update_ConfigDb.sh CDB/integration_ConfigDb.json
# Start the integration test
cd "$LOFAR20_DIR/docker-compose" || exit 1
make start integration-test
# Run the integration test with the output displayed on stdout
docker start -a integration-test
\ 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