https://github.com/overturetool/intocps-tracability-driver
Prototype of a traceability driver for overture git and INTO-CPS
https://github.com/overturetool/intocps-tracability-driver
Last synced: 6 days ago
JSON representation
Prototype of a traceability driver for overture git and INTO-CPS
- Host: GitHub
- URL: https://github.com/overturetool/intocps-tracability-driver
- Owner: overturetool
- Created: 2016-11-10T09:29:10.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-12-04T05:55:27.000Z (over 8 years ago)
- Last Synced: 2025-02-23T18:20:50.183Z (over 1 year ago)
- Language: Java
- Size: 78.1 KB
- Stars: 0
- Watchers: 15
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# INTO-CPS Tracability for Overture
## How to
To run a full repo sync use the following command:
```bash
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:
```bash
java -jar tracability-driver-*-jar-with-dependencies.jar -host http://localhost:8083 -c --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 ` 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`
```bash
#!/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:
```bash
chmod +x .git/hooks/post-commit
```
This will trigger a sync of the new commit to the daemon.
## Release the tool
```bash
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