diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3cc164dc1d8ed501c517047c5dcbf86f104d6fa3..27593ca877e544634c42b303a1dc3d756df4cb41 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -51,15 +51,9 @@ unit_test: - sudo apt-get update - sudo apt-get install -y git script: -<<<<<<< HEAD - cd tangostationcontrol - tox -e py37 -integration_test: -======= - - cd devices - - tox -e py37 integration_test_docker: ->>>>>>> master stage: integration-tests image: docker:latest tags: @@ -73,26 +67,6 @@ integration_test_docker: - apk add --update bind-tools - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY script: -<<<<<<< HEAD - - touch /home/$USER/.Xauthority - - source bootstrap/etc/lofar20rc.sh - - 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: - - tangostationcontrol/dist/*.whl - before_script: - - sudo apt-get update - - sudo apt-get install -y git - - pip3 install -r tangostationcontrol/test-requirements.txt - - pip3 install -r docker-compose/itango/lofar-requirements.txt - script: - - cd tangostationcontrol - - python setup.py bdist_wheel -======= - touch /root/.Xauthority # Hack BASH_SOURCE into sourced files, docker its sh shell won't set this - export BASH_SOURCE=$(pwd)/bootstrap/etc/lofar20rc.sh @@ -108,4 +82,16 @@ wheel_packaging: - chmod u+x $CI_PROJECT_DIR/sbin/run_integration_test.sh # Do not remove 'bash' or statement will be ignored by primitive docker shell - bash $CI_PROJECT_DIR/sbin/run_integration_test.sh ->>>>>>> master +wheel_packaging: + stage: packaging + artifacts: + paths: + - tangostationcontrol/dist/*.whl + before_script: + - sudo apt-get update + - sudo apt-get install -y git + - pip3 install -r tangostationcontrol/test-requirements.txt + - pip3 install -r docker-compose/itango/lofar-requirements.txt + script: + - cd tangostationcontrol + - python setup.py bdist_wheel