Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
flame-clmc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
flame
flame-clmc
Commits
c648720d
Commit
c648720d
authored
7 years ago
by
MJB
Browse files
Options
Downloads
Patches
Plain Diff
commit ref name test
parent
1a6f9355
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.githooks/post-commit
+7
-3
7 additions, 3 deletions
.githooks/post-commit
.gitlab-ci.yml
+4
-2
4 additions, 2 deletions
.gitlab-ci.yml
setup.py
+2
-4
2 additions, 4 deletions
setup.py
with
13 additions
and
9 deletions
.githooks/post-commit
+
7
−
3
View file @
c648720d
#!/bin/bash
mkdir
.build-config
git rev-list
--count
integration
>
.build-config/git-commit-count
git describe
--all
--long
>
.build-config/git-commit-version
\ No newline at end of file
mkdir
-p
.build-config
CI_COMMIT_REF_NAME
=
`
git rev-parse
--abbrev-ref
HEAD
`
CI_COMMIT_SHA
=
`
git rev-parse HEAD
`
echo
$CI_COMMIT_REF_NAME
"-"
$CI_COMMIT_SHA
>
.build-config/git-commit-ref
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
4
−
2
View file @
c648720d
variables
:
TEST_PACKAGE_NAME
:
clmctest-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHA.tar.gz
TEST_PACKAGE_NAME
:
clmctest-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHA
-
.tar.gz
stages
:
-
build
-
test
build:tests
:
stage
:
build
script
:
-
mkdir -p .build-config
-
echo CI_COMMIT_REF_NAME-$CI_COMMIT_SHA > ./build-config/git-commit-ref
-
python setup.py sdist --dist-dir=build
-
echo $TEST_PACKAGE_NAME
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
2
−
4
View file @
c648720d
...
...
@@ -6,14 +6,12 @@ def read(fname):
setup
(
name
=
"
clmctest
"
,
#version = read('.build-config/git-commit-version'),
version
=
"
SNAPSHOT
"
,
version
=
read
(
'
.build-config/git-commit-ref
'
),
author
=
"
Michael Boniface
"
,
author_email
=
"
mjb@it-innovation.soton.ac.uk
"
,
description
=
"
FLAME CLMC Testing Module
"
,
license
=
"
license
"
,
keywords
=
"
example documentation
"
,
url
=
"
http://packages.python.org/an_example_pypi_project
"
,
keywords
=
"
FLAME CLMC test
"
,
packages
=
find_packages
(
exclude
=
[
"
services
"
]),
include_package_data
=
True
,
package_data
=
{
''
:
[
'
*.yml
'
,
'
*.sh
'
]},
...
...
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