variables: DOCKER_TAG_DEV: ${CI_COMMIT_REF_NAME} RSYNC_OPTS: --recursive --ignore-missing-args --chown ${DEPLOY_USER}:${DEPLOY_USER} DOCKER_IMAGE_DEV: dpsim-dev GIT_SUBMODULE_STRATEGY: recursive stages: - prepare - build - deploy docker: stage: prepare script: - docker build -t ${DOCKER_IMAGE_DEV}:${DOCKER_TAG_DEV} . - docker images tags: - shell build:code: stage: build script: - mkdir build - cd build - cmake .. - make -j 8 image: ${DOCKER_IMAGE_DEV}:${DOCKER_TAG_DEV} artifacts: paths: - build tags: - docker build:docs: stage: build script: - cd build - cmake .. - make docs - make docs_cxx image: ${DOCKER_IMAGE_DEV}:${DOCKER_TAG_DEV} artifacts: paths: - build/Documentation/html - build/Documentation/Cxx/html tags: - docker deploy:docs: stage: deploy script: - ssh ${DEPLOY_USER}@${DEPLOY_HOST} mkdir -p ${DEPLOY_PATH}/doc/${CI_BUILD_REF_NAME}/{sphinx,doxygen} - rsync ${RSYNC_OPTS} build/Documentation/html ${DEPLOY_USER}@${DEPLOY_HOST}:${DEPLOY_PATH}/doc/$CI_BUILD_REF_NAME/sphinx - rsync ${RSYNC_OPTS} build/Documentation/Cxx/html ${DEPLOY_USER}@${DEPLOY_HOST}:${DEPLOY_PATH}/doc/$CI_BUILD_REF_NAME/doxygen dependencies: - build:docs only: - tags - master - development tags: - fein-deploy tags: - shell