create deployment timelines to communicate changes to your clients. revisioneer is a backend written in Go which sole purpose is to store your deployments & changeset messages you want to communicate.
You can retrieve those informations at any time, but how you display them is entirely up to you.
The service has only a single dependency on a database, which you can provision any way you like.
To run the testsuite you need to have a PostgreSQL server running & deployed. Revisioneer migrates the database schema automatically, so you only need to create a database.
createdb revisioneer_test
REV_DSN="user=$(whoami) dbname=revisioneer_test sslmode=disable" go test
createdb revisioneer
REV_DSN="user=$(whoami) dbname=revisioneer sslmode=disable" ./revisioneer
curl -X POST "http://127.0.0.1:8080/projects" -d '{ "name": "test" }'
# => 200 OK
{
"name": "test",
"api_token": "q+fehEVx5Kxast2DdUUnKaQpNiZ4GTsmmaYerNwDXDE=",
"created_at": "2013-11-14T22:48:54.431707172+01:00"
}
Make sure to keep the api_token
around. There is currently no way to retrieve it.
curl -X POST "http://127.0.0.1:8080/deployments" \
-d '{ "sha": "61722b0020", "messages": ["* added support for messages"], "new_commit_counter": 1 }' \
-H "API-TOKEN: q+fehEVx5Kxast2DdUUnKaQpNiZ4GTsmmaYerNwDXDE="
# => 200 OK
curl -X POST "http://127.0.0.1:8080/deployments/61722b0020/verify" \
-H "API-TOKEN: q+fehEVx5Kxast2DdUUnKaQpNiZ4GTsmmaYerNwDXDE="
# => 200 OK
curl "http://localhost:8080/deployments" \
-H "API-TOKEN: q+fehEVx5Kxast2DdUUnKaQpNiZ4GTsmmaYerNwDXDE="
# => 200 OK
[
{
"sha": "61722b0020",
"deployed_at": "2013-11-14T22:52:40.746848+01:00",
"messages": [
"* added support for messages"
]
}
]
Returns only the most recent 20 deployments. You can adjust this using page
and limit
parameters.