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: ...@@ -8,6 +8,7 @@ before_script:
stages: stages:
- build - build
- test - test
- doc_build
- deploy - deploy
...@@ -38,39 +39,39 @@ coverage: ...@@ -38,39 +39,39 @@ coverage:
paths: paths:
- build - build
expire_in: 1 day 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: doc_build:
stage: deploy stage: doc_build
before_script: before_script:
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' - 'true'
- '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: script:
- ssh -p50022 bolirev@bioneuro77.biologie.uni-bielefeld.de "mkdir -p /fastdata/html/navipy/" - ssh -p50022 bolirev@bioneuro77.biologie.uni-bielefeld.de "mkdir -p /fastdata/html/navipy/"
- pip3 install --user sphinx sphinx-rtd-theme - pip3 install --user sphinx sphinx-rtd-theme
- cd doc ; make html - cd doc ; make html
- ls build/html/
artifacts: artifacts:
paths: 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: only:
- master - 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