stages: - analyse - test - deploy variables: GIT_SUBMODULE_STRATEGY: normal line_limit: stage: analyse allow_failure: true image: registry.git.mel.vin/vermim/cicd/cicd/coreutils:0.1 script: - mkdir build - cd build - cmake -DDOC:STRING=OFF -DLINE_LIMIT:BOOL=ON -DWERROR:BOOL=ON .. - make line_limit regex_check: stage: analyse allow_failure: true image: registry.git.mel.vin/vermim/cicd/cicd/coreutils:0.1 script: - mkdir build - cd build - cmake -DDOC:STRING=OFF -DREGEX_CHECK:BOOL=ON -DWERROR:BOOL=ON .. - make regex_check sphinx_html: stage: test image: registry.git.mel.vin/vermim/cicd/cicd/sphinx_html:0.3 script: - mkdir build - cd build - cmake -DWERROR:BOOL=ON .. - make artifacts: paths: - build/doc/html review: stage: deploy variables: GIT_STRATEGY: none only: - master@shione/shione dependencies: - sphinx_html image: registry.git.mel.vin/vermim/cicd/cicd/coreutils:0.1 environment: name: review/$CI_COMMIT_REF_NAME url: https://shione.vermwa.re on_stop: review_stop script: - mkdir -p ~/.ssh - echo "$DOC_SSH_KNOWNHOSTS" > ~/.ssh/known_hosts - eval $(ssh-agent) - echo "$DOC_SSH_KEY" | ssh-add - > /dev/null - mv build/doc/html public - rsync -a --delete public/ 'web@shione.vermwa.re:' review_stop: stage: deploy variables: GIT_STRATEGY: none when: manual dependencies: [] image: registry.git.mel.vin/vermim/cicd/cicd/coreutils:0.1 environment: name: review/$CI_COMMIT_REF_NAME action: stop script: - mkdir -p ~/.ssh - echo "$DOC_SSH_KNOWNHOSTS" > ~/.ssh/known_hosts - eval $(ssh-agent) - echo "$DOC_SSH_KEY" | ssh-add - > /dev/null - mkdir /tmp/empty - rsync -a --delete /tmp/empty/ 'web@shione.vermwa.re:' - rmdir /tmp/empty