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

Resolve merge conflic

parents 4ffd4bf1 42011c59
No related branches found
No related tags found
No related merge requests found
# .coveragerc to control coverage.py
[run] [run]
omit = omit =
# Omit the blender file # Omit all test_ functions
*blend* **/test_*
# Omit blender functions / can be only tested with blender files
source = **/blend*
# include navipy source = navipy
navipy
[html] [html]
directory = coverage_html_report directory = coverage_html_report
\ No newline at end of file
image: python:latest image: python:latest
stages: stages:
- pretest
- build - build
- test - test
- coverage - coverage
- doc_build - doc_build
ssh:
stage: pretest
before_script:
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- 'which rsync || apt-get install rsync -y'
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- whoami
- hostname
- echo "$SSH_PRIVATE_KEY" > ~/.ssh/gitlab_rsa
- echo "$SSH_PUBLIC_KEY" > ~/.ssh/gitlab_rsa.pub
script:
- ssh -p50022 bolirev@bioneuro77.biologie.uni-bielefeld.de "mkdir -p /fastdata/html/navipy/"
navipy_install: navipy_install:
stage: build stage: build
before_script: before_script:
...@@ -24,6 +43,10 @@ navipy_install: ...@@ -24,6 +43,10 @@ navipy_install:
- build - build
expire_in: 2 hours expire_in: 2 hours
artifacts:
paths:
- venv
flake8: flake8:
stage: test stage: test
dependencies: dependencies:
...@@ -40,8 +63,6 @@ navipy_unittest: ...@@ -40,8 +63,6 @@ navipy_unittest:
script: script:
- source $CI_PROJECT_DIR/venv/bin/activate - source $CI_PROJECT_DIR/venv/bin/activate
- pip3 -V
- pip -V
- python3 -m coverage run -m unittest discover navipy - python3 -m coverage run -m unittest discover navipy
artifacts: artifacts:
...@@ -78,4 +99,4 @@ doc_build: ...@@ -78,4 +99,4 @@ doc_build:
paths: paths:
- doc/build - doc/build
expire_in: 1 week expire_in: 1 week
\ No newline at end of file
...@@ -24,4 +24,9 @@ In the interest of fostering an open and welcoming environment, we as students a ...@@ -24,4 +24,9 @@ In the interest of fostering an open and welcoming environment, we as students a
1. solve problems with CI/CD pipelines for contineous integration 1. solve problems with CI/CD pipelines for contineous integration
2. add tutorials 2. add tutorials
3. comment test function -> add to doc 3. comment test function -> add to doc
\ No newline at end of file
# Useful links
## for testing gitlab-ci locally
https://substrakt.com/how-to-debug-gitlab-ci-builds-locally/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment