6 Commits

Author SHA1 Message Date
Eli Bendersky
fb2c28e58a When testing on Travis, verify that tools/build was run
This is done by routing the generation of HTML into a temporary directory,
and checking its diff agains the existing public/ when running tests.

Fixes #237
2019-07-01 06:44:09 -07:00
Eli Bendersky
d34c7ac64e Rewrite verbose() to work in OSX bash 2019-06-06 05:26:20 -07:00
Eli Bendersky
5487e88919 Add VERBOSE option to tools/build and generate.go
VERBOSE will be set by TRAVIS (but can also be set by user to diagnose slow
builds). Using an env var so that it automatically propagates to all the
sub-scripts and tools without having to pass it through tools/build explicitly.
2019-06-05 10:15:13 -07:00
Eli Bendersky
8930aa53f3 Adding a basic sanity testing tool to run during 'build'.
The tool just runs 'go vet' for now; could do more later (like actually
run the examples and compare to some expected output)
2019-05-30 06:05:58 -07:00
Joel Scoble
8e7a6bb086 Update format script for new gofmt
gofmt no longer supports `tabs` and `tabwidth`, but we still require
exactly-4-space tabs to preserve the narrow layout on gobyexample.com,
so re-implement this functionality with sed.
2014-12-13 14:19:07 -08:00
Mark McGranaghan
0c1a7354e5 tighten 2012-10-10 06:54:46 -07:00