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
33242272
Commit
33242272
authored
6 years ago
by
Mads M. Pedersen
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml
parent
11db31ec
No related branches found
Branches containing commit
Tags
2.0
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+1
-0
1 addition, 0 deletions
.gitlab-ci.yml
git_utils.py
+4
-3
4 additions, 3 deletions
git_utils.py
with
5 additions
and
3 deletions
.gitlab-ci.yml
+
1
−
0
View file @
33242272
...
...
@@ -60,6 +60,7 @@ pypi_linux:
-
test_pypi
script
:
-
apt-get update
-
pip install pypandoc
-
pip install -e . --upgrade
-
python3 -c 'from git_utils import get_tag; get_tag(verbose=True)'
-
python3 -m pip install -U setuptools wheel
...
...
This diff is collapsed.
Click to expand it.
git_utils.py
+
4
−
3
View file @
33242272
...
...
@@ -14,11 +14,12 @@ def _run_git_cmd(cmd, git_repo_path=None):
try
:
process
=
subprocess
.
Popen
(
cmd
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
,
universal_newlines
=
True
,
cwd
=
os
.
path
.
abspath
(
git_repo_path
))
stdout
=
process
.
communicate
()
[
0
]
stdout
,
stderr
=
process
.
communicate
()
if
process
.
returncode
!=
0
:
raise
EnvironmentError
()
raise
EnvironmentError
(
"
%s
\n
%s
"
%
(
stdout
,
stderr
)
)
return
stdout
.
strip
()
except
EnvironmentError
as
e
:
...
...
@@ -32,7 +33,7 @@ def get_git_version(git_repo_path=None):
def
get_tag
(
git_repo_path
=
None
,
verbose
=
False
):
tag
=
_run_git_cmd
([
'
git
'
,
'
describe
'
,
'
--tags
'
,
'
--abbrev=0
'
],
git_repo_path
)
tag
=
_run_git_cmd
([
'
git
'
,
'
describe
'
,
'
--tags
'
,
'
--always
'
,
'
--abbrev=0
'
],
git_repo_path
)
if
verbose
:
print
(
tag
)
return
tag
...
...
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