Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CIF
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VERIFY
CIF
Commits
5a033bc3
Commit
5a033bc3
authored
4 years ago
by
Antoine Berchet
Browse files
Options
Downloads
Patches
Plain Diff
Merging local to gitlab-ci
parent
155e9814
No related branches found
No related tags found
2 merge requests
!26
Lsce
,
!25
Lsce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+38
-31
38 additions, 31 deletions
.gitlab-ci.yml
tox.ini
+7
-0
7 additions, 0 deletions
tox.ini
with
45 additions
and
31 deletions
.gitlab-ci.yml
+
38
−
31
View file @
5a033bc3
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
tox.ini
+
7
−
0
View file @
5a033bc3
...
...
@@ -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"))'
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment