Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
PyWake
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
Service Desk
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
TOPFARM
PyWake
Commits
941fea43
Commit
941fea43
authored
6 years ago
by
Mikkel Friis-Møller
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml
parent
dbb4d008
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+5
-14
5 additions, 14 deletions
.gitlab-ci.yml
with
5 additions
and
14 deletions
.gitlab-ci.yml
+
5
−
14
View file @
941fea43
# ===== 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
...
...
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