Skip to content
Snippets Groups Projects
Commit 5a033bc3 authored by Antoine Berchet's avatar Antoine Berchet
Browse files

Merging local to gitlab-ci

parent 155e9814
No related branches found
No related tags found
2 merge requests!26Lsce,!25Lsce
......@@ -61,37 +61,44 @@ install:
pages:
stage: deploy
image: pycif/pycif-ci:0.1
before_script:
- apt-get --force-yes install libeccodes0
- pip freeze
script:
# - apk --no-cache add py2-pip python-dev
# - apk --no-cache add fontconfig fontconfig-dev
# - apk --no-cache add font-noto
# - apk --no-cache add graphviz graphviz-dev
# - apk --no-cache add py-pygraphviz py2-gv graphviz-graphs graphviz-gtk
# - pip install sphinx
# - pip install sphinxcontrib-plantuml
# - pip install sphinx-rtd-theme
# - apk --no-cache add make
- echo deb http://archive.ubuntu.com/ubuntu/ xenial main restricted >> /etc/apt/sources.list.d/repo.list
- echo deb http://security.ubuntu.com/ubuntu xenial-security main restricted >> /etc/apt/sources.list.d/repo.list
- echo deb http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted >> /etc/apt/sources.list.d/repo.list
- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5
- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
- apt-get update
- apt-cache policy
- apt-get --yes --force-yes install libeccodes0
- apt-get --yes --force-yes install graphviz
- pip install sphinx
- pip install sphinxcontrib-plantuml
- pip install graphviz
- pip install 'pyproj<3'
- pip install numpy
- python setup.py install
- cd docs
- make html
- cd ..
- mkdir .public
- cp -r docs/build/html .public/
- mv .public public
- tox -e py36 -e docs
# script:
# # - apk --no-cache add py2-pip python-dev
# # - apk --no-cache add fontconfig fontconfig-dev
# # - apk --no-cache add font-noto
# # - apk --no-cache add graphviz graphviz-dev
# # - apk --no-cache add py-pygraphviz py2-gv graphviz-graphs graphviz-gtk
# # - pip install sphinx
# # - pip install sphinxcontrib-plantuml
# # - pip install sphinx-rtd-theme
# # - apk --no-cache add make
# - echo deb http://archive.ubuntu.com/ubuntu/ xenial main restricted >> /etc/apt/sources.list.d/repo.list
# - echo deb http://security.ubuntu.com/ubuntu xenial-security main restricted >> /etc/apt/sources.list.d/repo.list
# - echo deb http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted >> /etc/apt/sources.list.d/repo.list
# - apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5
# - apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
# - apt-get update
# - apt-cache policy
# - apt-get --force-yes install graphviz
# - apt-get --yes --force-yes install libeccodes0
# - pip freeze
# - pip install sphinx
# - pip install sphinxcontrib-plantuml
# - pip install graphviz
# - pip install 'pyproj<3'
# - pip install cython
# - pip install numpy
# - python setup.py install
# - cd docs
# - make html
# - cd ..
# - mkdir .public
# - cp -r docs/build/html .public/
# - mv .public public
artifacts:
paths:
- public
......@@ -112,7 +119,7 @@ tests:
image: pycif/pycif-ci:0.1
before_script:
- apt-get update
- apt-get --yes --force-yes install libeccodes0
- apt-get --force-yes install libeccodes0
- pip freeze
script:
- tox -e py36 -e coverage
......
......@@ -34,3 +34,10 @@ deps=
flake8-html
commands =
flake8 --format=html --htmldir=reports/flake8/ {toxinidir}/pycif {toxinidir}/tests
[testenv:docs]
description = invoke sphinx-build to build the HTML docs
deps = sphinx >= 1.7.5, < 2
commands = sphinx-build -d "{toxworkdir}/docs_doctree" doc "{toxworkdir}/docs_out" --color -W -bhtml {posargs}
python -c 'import pathlib; print("documentation available under file://\{0\}".format(pathlib.Path(r"{toxworkdir}") / "docs_out" / "index.html"))'
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