Skip to content

Building From Source

Michael Schenk edited this page Oct 22, 2016 · 6 revisions

Easiest way to understand how to build from source is to utilize the Vagrantfile.

If you don't have Vagrant installed you can download it from here.

git clone https://github.com/git-time-metric/gtm.git
vagrant up

The initial vagrant up will install Go, setup the GOPATH and build GTM within the Linux VM.

Feel free to review the Vagrantfile to understand the steps for building.

You can also consult the .travis.yml and appveyor.yml build configuration files.

If you are building locally this recipe should work for properly setup Go environments.

go get -d github.com/git-time-metric/git2go
cd $GOPATH/src/github.com/git-time-metric/git2go
git checkout next
git submodule update --init
make install

go get -d github.com/git-time-metric/gtm
cd $GOPATH/src/github.com/git-time-metric/gtm
go get -t -v ./...
go test ./...
go install