Skip to content
Snippets Groups Projects
Commit 8706f0a5 authored by Olivier Bertrand's avatar Olivier Bertrand
Browse files

Update .gitlab-ci.yml

parent 895af7fb
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@ before_script:
stages:
- build
- test
- doc_build
- deploy
......@@ -38,39 +39,39 @@ coverage:
paths:
- build
expire_in: 1 day
pages:
stage: deploy
before_script:
- "true"
script:
- mkdir -p public/coverage
- cp -fr docs/build/html/* public/
- cp -fr build/* public/coverage/
dependencies:
- coverage
- apidoc
artifacts:
paths:
- public
doc_build:
stage: deploy
stage: doc_build
before_script:
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- 'which rsync || apt-get install rsync -y'
- mkdir -p ~/.ssh
- eval $(ssh-agent -s)
- '[[ -f /.dockerenv ]] && echo -e "Host *ntStrictHostKeyChecking nonn" > ~/.ssh/config'
- ssh-add <(echo "$PRIVATE_KEY")
- 'true'
script:
- ssh -p50022 bolirev@bioneuro77.biologie.uni-bielefeld.de "mkdir -p /fastdata/html/navipy/"
- pip3 install --user sphinx sphinx-rtd-theme
- cd doc ; make html
- ls build/html/
artifacts:
paths:
- public
- build
pages:
stage: deploy
before_script:
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- 'which rsync || apt-get install rsync -y'
- mkdir -p ~/.ssh
- eval $(ssh-agent -s)
- '[[ -f /.dockerenv ]] && echo -e "Host *ntStrictHostKeyChecking nonn" > ~/.ssh/config'
- ssh-add <(echo "$PRIVATE_KEY")
script:
- mkdir -p public/coverage
- cp -fr docs/build/html/* public/
- cp -fr build/* public/coverage/
dependencies:
- coverage
- apidoc
artifacts:
paths:
- public
only:
- master
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