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

Change gitlab and source/conf

gitlab has a new step called flake8
conf.py the ipython directive has been removed
parent eccdc905
No related branches found
No related tags found
No related merge requests found
...@@ -7,31 +7,28 @@ before_script: ...@@ -7,31 +7,28 @@ before_script:
stages: stages:
- build - build
- flake8
- test - test
build: build:
script: script:
- python3 setup.py bdist_wheel - python3 setup.py bdist_wheel
# an alternative approach is to install and run:
# - pip3 install dist/*
# run the command here
#artifacts:
# paths:
# - dist/*.whl
test: flake8:
script: script:
#- python3 setup.py test - pip3 install --user tox flake8
- pip3 install --user tox flake8 networkx # you can also use tox
#- tox -e py36,flake8
- python3 -m flake8 navipy/*.py - python3 -m flake8 navipy/*.py
test:
script:
- pip3 install --user networkx # you can also use tox
- python3 -m unittest discover navipy - python3 -m unittest discover navipy
pages: pages:
script: script:
- pip3 install sphinx sphinx-rtd-theme - pip3 install --user sphinx sphinx-rtd-theme
- cd doc ; make html - cd doc ; make html
- mv build/html/ ../public/ - mv build/html/ ../public/
artifacts: artifacts:
......
...@@ -33,8 +33,6 @@ sys.path.insert(0, os.path.abspath('../../src/database/')) ...@@ -33,8 +33,6 @@ sys.path.insert(0, os.path.abspath('../../src/database/'))
# ones. # ones.
extensions = ['matplotlib.sphinxext.only_directives', extensions = ['matplotlib.sphinxext.only_directives',
'matplotlib.sphinxext.plot_directive', 'matplotlib.sphinxext.plot_directive',
'IPython.sphinxext.ipython_directive',
'IPython.sphinxext.ipython_console_highlighting',
'sphinx.ext.autodoc', 'sphinx.ext.autodoc',
'sphinx.ext.doctest', 'sphinx.ext.doctest',
'sphinx.ext.intersphinx', 'sphinx.ext.intersphinx',
......
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