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

Update gotlab ci

parent aa0b371f
No related branches found
No related tags found
No related merge requests found
...@@ -10,23 +10,22 @@ stages: ...@@ -10,23 +10,22 @@ stages:
navipy_install: navipy_install:
stage: build stage: build
before_script: before_script:
- python3 -V # Print out python version for debugging - python3 -V # Print out python version for debugging
artifacts:
paths:
- venv
script: script:
- pip3 install virtualenv - pip3 install virtualenv
- virtualenv venv - virtualenv venv
- source venv/bin/activate - source venv/bin/activate
- python3 setup.py bdist_wheel - python3 setup.py bdist_wheel
artifacts:
paths:
- venv
flake8: flake8:
stage: test stage: test
before_script:
- ls -l
- source venv/bin/activate
script: script:
- pip3 install tox flake8 - pip3 install tox flake8
- python3 -m flake8 navipy/*.py - python3 -m flake8 navipy/*.py
...@@ -36,10 +35,7 @@ navipy_unittest: ...@@ -36,10 +35,7 @@ navipy_unittest:
dependencies: dependencies:
- navipy_install - navipy_install
before_script:
- ls -l $CI_PROJECT_DIR
script: script:
- ls -l $CI_PROJECT_DIR
- source $CI_PROJECT_DIR/venv/bin/activate - source $CI_PROJECT_DIR/venv/bin/activate
- python3 -m unittest discover navipy - python3 -m unittest discover navipy
...@@ -57,11 +53,11 @@ coverage: ...@@ -57,11 +53,11 @@ coverage:
doc_build: doc_build:
stage: doc_build stage: doc_build
before_script:
- 'true'
script: script:
- source $CI_PROJECT_DIR/venv/bin/activate
- pip3 install --user sphinx sphinx_rtd_theme - pip3 install --user sphinx sphinx_rtd_theme
- cd doc ; make html - cd doc ; make html
artifacts: artifacts:
paths: paths:
- build - build
...@@ -82,6 +78,7 @@ pages: ...@@ -82,6 +78,7 @@ pages:
- mkdir -p public/coverage - mkdir -p public/coverage
- cp -fr docs/build/html/* public/ - cp -fr docs/build/html/* public/
- cp -fr build/* public/coverage/ - cp -fr build/* public/coverage/
dependencies: dependencies:
- coverage - coverage
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment