Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lutin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
verimag
synchrone
lutin
Commits
6ab04529
Commit
6ab04529
authored
Apr 05, 2019
by
erwan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build: new version number workflow based on gitlab-release
parent
fda65e93
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
27 deletions
+9
-27
Makefile.dev
Makefile.dev
+9
-27
No files found.
Makefile.dev
View file @
6ab04529
#######################################################################################
# Workflow:
# C=make cia ; A=make amend ; U=make uv ; P=make opam-rel
# - to make sure the sha and the version are good, one should never
# do U and then A.
# - to make sure gtit is not confused, one should never do A and the P
#
# therefore, to avoid such problems, legal trace are defined by this automata:
# 0 -C-> 1
# 1 -A-> 1
# 1 -P-> 2
# 2 -U-> 0
# 1 -U-> 0
# to implement such a workflow, C puts a lock (state 1) and U removes it (state 0)
###############################
# typical workflow:
# uv -> [cia -> amend*]+ -> push ->
# wait for gitlab release job -> pull (to get the release tag)
# and then; optionnaly, to release an opam version:
# opam-rel
#
#
#
uv
:
update_version
update_version
:
git pull
rm
-f
lutin/src/version.ml
make lutin/src/version.ml
ifneq
(,$(findstring -,$(VERSION)))
echo
"won't update _oasis"
else
cp
_oasis _oasis.save
cat
_oasis.save |
sed
"s/^Version:.*/Version:
$(VERSION)
/"
>
_oasis
rm
-f
committed
git add lutin/src/version.ml _oasis
make clean
&&
make
endif
cia
:
test man cia-no-test
cia-no-test
:
test
-f
committed
&&
\
echo
"*** I won't commit!
\n
*** until you 'make update_version'!"
\
||
(
git commit
-a
-F
log
&&
touch
committed
)
git commit
-a
-F
log
push
:
opam-test
...
...
@@ -45,7 +27,7 @@ push: opam-test
amend
:
test
-f
committed
&&
git commit
-a
-F
log
--amend
git commit
-a
-F
log
--amend
dif
:
git
--no-pager
diff
--color-words
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment