Skip to content
Snippets Groups Projects
Commit 941fea43 authored by Mikkel Friis-Møller's avatar Mikkel Friis-Møller
Browse files

Update .gitlab-ci.yml

parent dbb4d008
No related branches found
No related tags found
No related merge requests found
# ===== DEFINE DEFAULT DOCKER IMAGE =====
# dockerhub image generated using docker/Dockerfile_simple
image: continuumio/anaconda3:latest
# ===== TEST PyWake debian=====
test_PyWake: # name the job what we like
image: continuumio/anaconda3:latest
stage: # build, test, deploy defined by default [2]
test
script:
......@@ -12,12 +12,11 @@ test_PyWake: # name the job what we like
- py.test
tags: # only runners with this tag can do the job [3]
- python
except:
- test_pypi
# ===== Check code style =====
check_code_style: # name the job what we like
image: continuumio/anaconda3:latest
stage: # build, test, deploy defined by default [2]
test
script:
......@@ -25,8 +24,6 @@ check_code_style: # name the job what we like
- pycodestyle --ignore=E501,W504 py_wake
tags: # only runners with this tag can do the job [3]
- python
except:
- test_pypi
# ===== TEST PyWake on Windows =====
test_PyWake_windows: # name the job what we like
......@@ -36,13 +33,10 @@ test_PyWake_windows: # name the job what we like
- c:/Anaconda3/envs/pyTopfarm/python.exe -m pytest --cov-report term-missing:skip-covered --cov=py_wake --cov-config .coveragerc
tags: # tag for shared runner on windows machine
- CPAV_old_PC
except:
- test_pypi
image: dtuwindenergy/topfarm2:latest
# ===== build documentation =====
pages: # "pages" is a job specifically for GitLab pages [1]
image: dtuwindenergy/topfarm2:latest
stage: # build, test, deploy defined by default [2]
deploy
script: # use sphinx to build docs, move to public page
......@@ -56,10 +50,9 @@ pages: # "pages" is a job specifically for GitLab pages [1]
- test_docs
tags: # only runners with this tag can do the job [3]
- python
except:
- test_pypi
pypi_linux:
image: dtuwindenergy/topfarm2:latest
stage:
deploy
only:
......@@ -68,7 +61,6 @@ pypi_linux:
script:
- apt-get update
- pip install -e . --upgrade
#- python3 -c 'from git_utils import write_vers; write_vers("py_wake/__init__.py")'
- python3 -m pip install -U setuptools wheel
- python3 setup.py sdist bdist_wheel
- python3 -m pip install -U twine
......@@ -85,7 +77,6 @@ pypi_windows:
- tags
- test_pypi
script:
#- c:/Anaconda3/envs/pyTopfarm/python.exe -c "from git_utils import write_vers; write_vers("py_wake/__init__.py")"
- c:/Anaconda3/envs/pyTopfarm/python.exe setup.py bdist_wheel
#- 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
......
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