Commit graph

16 commits

Author SHA1 Message Date
Cameron Moore
8cd3ea565a Fix check-vendor logic in Makefile 2017-04-22 22:34:12 +02:00
Bjørn Erik Pedersen
7935541087 Remove check-vendor from make check
I suspect there are some false negatives in this one.
2017-04-19 18:12:01 +02:00
Cameron Moore
592e055f12 Add check-vendor target to Makefile
The check-vendor target will exit with an error if any files in vendor/
differ from what's checked into git.

govendor checksums can get out of sync if extraneous files are in the
local, third-party repo (see kardianos/govendor#129).  govendor also
updates the vendor.json upon "sync."  We can use that quirk to detect
out of sync checksums in CI, so I've added check-vendor to the check
target dependencies.
2017-04-19 18:04:53 +02:00
Dmitry Kurkin
7dc9458167 make: Fix typo 2017-01-18 19:30:25 +01:00
Cameron Moore
1d7b960614 Clean up Makefile (#2924)
Add missing deprecated targets.  Remove `test` from `check` target since
we already have `test-race`.

Fixes #2901
2017-01-11 10:07:35 +01:00
Bjørn Erik Pedersen
b7e800454f makefile: Add test-cover-html 2016-11-27 23:21:10 +01:00
Cameron Moore
8b43d39ef3 Use govendor sync instead of get 2016-10-14 23:41:02 +02:00
Cameron Moore
6e692f2d11 Add vendoring with govendor 2016-09-19 00:10:10 +02:00
Cameron Moore
d3627b1747 Simplify Travis build 2016-08-16 17:01:59 -05:00
Bjørn Erik Pedersen
fd5d573566 Add go test -race to make check 2016-04-07 13:36:48 +02:00
Cameron Moore
e8cf8b40df hugo: Add check tasks to Makefile
Add some helpful tasks to the Makefile to make it easier to test code quality
prior to committing.  Use `make check` to run the standard checks.  As of now,
the cyclo and lint tasks are not part of the standard checks since Hugo doesn't
pass those checks.
2016-03-22 19:40:27 +01:00
Sven Dowideit
7bc5d3663f Use a Docker container to build hugo
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2016-01-04 12:47:23 -05:00
Andrew Carter
c2869aead0 Fix -ldflags for Go 1.5
Use correct form -X <name>=<value> for Go 1.5
2015-08-21 09:14:15 +02:00
Derek Perkins
ac6b86aff8 Added top level .Hugo variable with version, commit and generator information + docs
Added Version, CommitHash and BuildDate to hugolib/hugo.go and used it in build
Removed commitHash and buildDate from commands/version.go and used hugolib vars
Removed getDateFormat function from commands/version.go

Conflicts:
	README.md
	docs/content/templates/variables.md
2015-01-19 01:22:23 +01:00
Austin Ziegler
be3d563a13 Add an install target to Makefile. 2014-12-09 11:12:40 +01:00
Rasmus Stougaard
c5ae2a2d1d Added makefile that builds with git information
I have put the extra linker flags in a makefile to avoid having to remember the long command to get the commitHash in the version command.

See comment by tatsushid here:
https://github.com/spf13/hugo/issues/540

NB: only tested on Mac OS x 10.10.1 since that is what I have access to
2014-11-24 17:25:51 -05:00