Commit e0a0df2c authored by Andrea Gonsek's avatar Andrea Gonsek
Browse files

Add unittest and fix path

parent 789965c5
......@@ -24,10 +24,7 @@ navipy_install:
- venv
expire_in: 2 hours
artifacts:
paths:
- venv
blendnavipy_install:
stage: buildblend
dependencies:
......@@ -38,14 +35,19 @@ blendnavipy_install:
script:
- source $CI_PROJECT_DIR/venv/bin/activate
- bash navipy/scripts/autoinstall_blendnavipy.sh
- bash autoinstall_blendnavipy.sh
- pip3 install .
- python navipy/scripts/config_matplotlib_server.py # because no interactive backend
- python navipy/scripts/config_matplotlib_server.py # because no interactive backend
artifacts:
paths:
- venv
expire_in: 2 hours
flake8:
stage: test
dependencies:
- navipy_install
- blendnavipy_install
script:
- source $CI_PROJECT_DIR/venv/bin/activate
......@@ -54,7 +56,7 @@ flake8:
navipy_unittest:
stage: test
dependencies:
- navipy_install
- blendnavipy_install
script:
- source $CI_PROJECT_DIR/venv/bin/activate
......@@ -65,6 +67,18 @@ navipy_unittest:
- .coverage
expire_in: 1 hours
blendnavipy_unittest:
stage: test
dependencies:
- blendnavipy_install
before_script:
- apt-get update -y; apt-get install -y -qq blender
script:
- source $CI_PROJECT_DIR/venv/bin/activate
- blendunittest
coverage:
stage: coverage
dependencies:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment