Skip to content
Snippets Groups Projects
Commit 256566fc authored by Mads M. Pedersen's avatar Mads M. Pedersen
Browse files

Test doc2

parent f75ade17
No related branches found
No related tags found
No related merge requests found
image: dtuwindenergy/topfarm2:latest image: continuumio/anaconda3
stages: stages:
- test - test
...@@ -62,18 +62,17 @@ trigger_pywake_ellipsys_test: ...@@ -62,18 +62,17 @@ trigger_pywake_ellipsys_test:
only: only:
- schedules - schedules
# ===== build documentation ===== # ===== build documentation =====
pages: # "pages" is a job specifically for GitLab pages [1] pages: # "pages" is a job specifically for GitLab pages [1]
stage: # build, test, deploy defined by default [2] stage: # build, test, deploy defined by default [2]
deploy deploy
script: # use sphinx to build docs, move to public page script: # use sphinx to build docs, move to public page
- apt-get update
- apt-get -y install make
- pip install --upgrade pip - pip install --upgrade pip
- pip install sphinx --upgrade - pip install sphinx --upgrade
- pip install nbsphinx --upgrade - pip install nbsphinx --upgrade
- pip install -e . - pip install -e .[test]
- cd docs/validation_report - cd docs/validation_report
- python generate_validation_figures.py - python generate_validation_figures.py
- cd report - cd report
...@@ -90,12 +89,11 @@ pages: # "pages" is a job specifically for GitLab pages [1] ...@@ -90,12 +89,11 @@ pages: # "pages" is a job specifically for GitLab pages [1]
artifacts: # required for GitLab pages [1] artifacts: # required for GitLab pages [1]
paths: paths:
- public - public
#- docs/build/latex/PyWake.pdf
only: # only run for these branches only: # only run for these branches
- master
- /^test_doc.*/ - /^test_doc.*/
tags: # only runners with this tag can do the job [3] tags: # only runners with this tag can do the job [3]
- python - ci-ubuntu
pypi_linux: pypi_linux:
stage: stage:
...@@ -107,16 +105,16 @@ pypi_linux: ...@@ -107,16 +105,16 @@ pypi_linux:
- apt-get update - apt-get update
- pip install --upgrade pip - pip install --upgrade pip
- pip install pypandoc - pip install pypandoc
- pip install -e . --upgrade - pip install -e .[test] --upgrade
- python3 -c 'from git_utils import get_tag; get_tag(verbose=True)' - python -c 'from git_utils import get_tag; get_tag(verbose=True)'
- python3 -m pip install -U setuptools wheel - python -m pip install -U setuptools wheel
- python3 setup.py sdist bdist_wheel - python setup.py sdist bdist_wheel
- python3 -m pip install -U twine - python -m pip install -U twine
- python3 -c 'from git_utils import rename_dist_file; rename_dist_file()' - python -c 'from git_utils import rename_dist_file; rename_dist_file()'
- twine upload dist/* -u $TWINE_USERNAME -p $TWINE_PASSWORD - twine upload dist/* -u $TWINE_USERNAME -p $TWINE_PASSWORD
#- twine upload --repository-url https://test.pypi.org/legacy/ dist/* -u $TWINE_USERNAME -p $TWINE_PASSWORD # for testing purposes #- twine upload --repository-url https://test.pypi.org/legacy/ dist/* -u $TWINE_USERNAME -p $TWINE_PASSWORD # for testing purposes
tags: tags:
- python - ci-ubuntu
# current # current
# pypi_windows: # pypi_windows:
......
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