Commit bff91b51 authored by Reto Da Forno's avatar Reto Da Forno

branch python3 merged into master

parents c59a9cbf 0b234737

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.
# runner configuration file
#
# file validation: https://gitlab.ethz.ch/[project_path]/-/ci/lint
# gitlab CI how-to: https://docs.gitlab.com/ee/ci/yaml/
# YAML getting started: https://yaml.org/start.html
# YAML reference card: https://yaml.org/refcard.html
#
# note: do not use the following keywords for job names: image, services, stages, types, before_script, after_script, variables, cache
stages:
- deploy
- test
deploy testmanagement to devserver:
stage: deploy
variables:
DEV_SERVER: 'flocklab@flocklab-dev-server.ethz.ch'
SSH_OPTIONS: 'ssh -q -o StrictHostKeyChecking=no'
RSYNC_OPTIONS: '-av --no-perms --no-owner --no-group --delete --exclude=*.ini --exclude=*.so'
script:
- 'apk update >/dev/null && apk add rsync openssh-client >/dev/null'
- 'eval $(ssh-agent -s) && echo "$CI_SSH_PRIVATE_KEY" | ssh-add -'
- 'echo "uploading files to ${DEV_SERVER}..."'
- 'rsync ${RSYNC_OPTIONS} -e "${SSH_OPTIONS}" server/testmanagementserver/ ${DEV_SERVER}:testmanagementserver/'
- 'rsync ${RSYNC_OPTIONS} -e "${SSH_OPTIONS}" server/webserver/testmanagement/ ${DEV_SERVER}:testmanagement/'
only:
refs:
- python3
changes:
- server/testmanagementserver/**/*
- server/webserver/testmanagement/**/*
deploy user to devserver:
stage: deploy
variables:
DEV_SERVER: 'flocklab@flocklab-dev-server.ethz.ch'
SSH_OPTIONS: 'ssh -q -o StrictHostKeyChecking=no'
RSYNC_OPTIONS: '-av --no-perms --no-owner --no-group --delete --exclude=*.ini --exclude=*.so'
script:
- 'apk update >/dev/null && apk add rsync openssh-client >/dev/null'
- 'eval $(ssh-agent -s) && echo "$CI_SSH_PRIVATE_KEY" | ssh-add -'
- 'echo "uploading files to ${DEV_SERVER}..."'
- 'rsync ${RSYNC_OPTIONS} -e "${SSH_OPTIONS}" server/webserver/user/ ${DEV_SERVER}:webserver/'
only:
refs:
- python3
changes:
- server/webserver/user/**/*
deploy to production:
stage: deploy
variables:
PRODUCTION_SERVER: 'flocklab@whymper.ethz.ch'
SSH_OPTIONS: 'ssh -q -o StrictHostKeyChecking=no'
RSYNC_OPTIONS: '-av --no-perms --no-owner --no-group --exclude=*.ini --exclude=*.conf --exclude=*.so'
script:
- 'apk update >/dev/null && apk add rsync openssh-client >/dev/null'
- 'eval $(ssh-agent -s) && echo "$CI_SSH_PRIVATE_KEY" | ssh-add -'
- 'echo "uploading files to ${PRODUCTION_SERVER}..."'
- 'rsync ${RSYNC_OPTIONS} -e "${SSH_OPTIONS}" server/testmanagementserver/ ${PRODUCTION_SERVER}:flocklab_bin/testmanagementserver/'
- 'rsync ${RSYNC_OPTIONS} -e "${SSH_OPTIONS}" server/webserver/testmanagement/ ${PRODUCTION_SERVER}:testmanagement/'
- 'rsync ${RSYNC_OPTIONS} -e "${SSH_OPTIONS}" server/webserver/user/ ${PRODUCTION_SERVER}:public_html/user/'
only:
refs:
- master
changes:
- server/testmanagementserver/**/*
- server/webserver/testmanagement/**/*
- server/webserver/user/**/*
when: manual
run flocklab test:
stage: test
variables:
FLOCKLAB_TOOL: 'tools/flocklab'
TEST_RUNTIME: 120
TEST_CLEANUP: 180
script:
- 'apk update >/dev/null && apk add bash curl tar sed'
- 'export USER=$CI_FLOCKLAB_USER'
- 'export PASSWORD=$CI_FLOCKLAB_PW'
- 'RES=$( $FLOCKLAB_TOOL -c flocklab-dpp.xml )'
- 'TESTID=$( echo $RES | sed -n "s/.*Test ID: \([0-9][0-9]*\).*/\1/p" )'
- 'STARTTIME=$( echo $RES | sed -n "s/.*(\([0-9][0-9]*\))/\1/p" )'