Skip to content
Snippets Groups Projects
Commit 9beabcb2 authored by erwan's avatar erwan
Browse files

Automate version numbering using Semantic Versionning (semantic-release-gitlab)

https://www.npmjs.com/package/semantic-release-gitlab

from https://semver.org/ :
  Given a version number MAJOR.MINOR.PATCH, increment the:

  - MAJOR version when you make incompatible API changes,
  - MINOR version when you add functionality in a backwards-compatible manner, and
  - PATCH version when you make backwards-compatible bug fixes.

For MAJOR, choosing 6 is obvious.

From Minor it's not clear. This number is supposed to reflect the number of
add functuionnality, so starting at 0 is not great.

The current version is 1.762, but starting at 762 would be wrong too,
as most do not deals with new functionnalyties.

In a ideal word, I should use the log and tag every commit tha deals with a new
functionnalyty, but there is a lot of commits (762).

Hence I,'ve decided to choose 100.
parent db7aa5b3
No related branches found
No related tags found
No related merge requests found
Pipeline #18124 passed with warnings
......@@ -6,6 +6,7 @@ variables:
stages:
- build
- test
- release
build:
stage: build
......@@ -36,3 +37,13 @@ test_opam_on_mac:
- opam install -y lustre-v6
- lv6 -help
allow_failure: true
release:
before_script:
- yarn install --frozen-lockfile
image: node:8
only:
- master
script:
- $(yarn bin)/semantic-release-gitlab --preset eslint
stage: release
......@@ -48,7 +48,8 @@ README.md: README.txt
# to implement such a workflow, C puts a lock (state 1) and U removes it (state 0)
uv:update_version
update_version:
update_version:
git pull
rm -f src/lv6version.ml
make src/lv6version.ml
cp _oasis _oasis.save
......
OASISFormat: 0.4
Name: lustre-v6
Version: 1.762
Version: 6.100.0
Synopsis: The Lustre V6 Verimag compiler
Description: This package contains:
- lv6: the (current) name of the compiler (and interpreter via -exec)
......
No preview for this file type
{
"name": "lustre",
"version": "6.100.0",
"description": "The Lustre V6 Verimag compiler",
"main": "index.js",
"scripts": {
"test": "make test"
},
"repository": {
"type": "git",
"url": "https://gricad-gitlab.univ-grenoble-alpes.fr/verimag/synchrone/lustre-v6.git"
},
"keywords": [
"synchronous languages",
"reactive programs"
],
"author": "Erwan Jahier",
"license": "CeCILL",
"devDependencies": {
"semantic-release-gitlab": "^7.1.1",
"semantic-release-gitlab-releaser": "^5.1.1"
}
}
(** Automatically generated from Makefile *)
(** Automatically generated from Makefile.version *)
let tool = "lv6"
let str="6.100.0"
let sha="db7aa5b"
let branch = "master"
let commit = "762"
let sha_1 = "1f13ae8eb77b10d105a7e84aaabd50d2f5f75604"
let str = (branch ^ "." ^ commit ^ " (" ^ sha_1 ^ ")")
let maintainer = "erwan.jahier@univ-grenoble-alpes.fr"
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