Skip to content

Prototype of a traceability driver for overture git and INTO-CPS

Notifications You must be signed in to change notification settings

overturetool/intocps-tracability-driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

INTO-CPS Tracability for Overture

How to

To run a full repo sync use the following command:

java -jar tracability-driver-*-jar-with-dependencies.jar -host http://localhost:8083 -s  --dry-run -vdm -exclude SysML -repo /path/to/repo

or to sync a single commit only:

java -jar tracability-driver-*-jar-with-dependencies.jar -host http://localhost:8083 -c <commit-hash> --dry-run -vdm -exclude SysML -repo /path/to/repo

The --dry-run command makes the tool only print the data that would be send. Drop this so send the messages. If a custom host is used then specify -host <url> to override the default host URL.

Git hook

The tool can be used in combination with git hooks. If the daemon is running locally such a hook could look like:

Hook file: .git/hooks/post-commit

#!/bin/sh
java -jar tracability-driver-*-jar-with-dependencies.jar -c HEAD -vdm -exclude SysML -repo $GIT_DIR../

assuming that the *.jar file is also in hooks.

Make sure it is executable:

chmod +x .git/hooks/post-commit

This will trigger a sync of the new commit to the daemon.

Release the tool

mvn -Dmaven.repo.local=repository release:clean
mvn -Dmaven.repo.local=repository release:prepare -DreleaseVersion=${RELEASE_VER} -DdevelopmentVersion=${NEW_DEV_VER}
mvn -Dmaven.repo.local=repository release:perform

About

Prototype of a traceability driver for overture git and INTO-CPS

Resources

Stars

Watchers

Forks

Packages

No packages published