Skip to content

Commit

Permalink
speed: make the project go getable
Browse files Browse the repository at this point in the history
this checks in the generated files and removes the `make` requirement
after `go get`. most go projects check in generated files, with the 'DO
NOT EDIT' header
  • Loading branch information
suyash committed Aug 22, 2016
1 parent 3a18bbe commit f825f1e
Show file tree
Hide file tree
Showing 14 changed files with 274 additions and 21 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,4 @@
# coverage
*.coverage

# stringer
*_string.go

.vscode/
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: go
go:
- 1.6.3
- 1.7rc5
- 1.6
- 1.7
- tip
env:
global:
Expand Down
11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
build: clean
go build ./...
go install ./...
go generate
build:
go build ./...
go install ./...

clean:
git clean -Xf
rm *_string.go

gen:
go generate

deps:
go get -u golang.org/x/tools/cmd/stringer
go get -u github.com/alecthomas/gometalinter
gometalinter --install

lint:
gometalinter ./... --vendor --deadline=10000s --dupl-threshold=150 --disable=interfacer --disable=gas
gometalinter ./... --vendor --deadline=10000s --dupl-threshold=100 --disable=interfacer --disable=gas

test:
go test ./...
Expand Down
11 changes: 0 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,10 @@ Set up a go environment on your computer. For more information about these steps

### Getting the library

First download the package

```sh
go get github.com/performancecopilot/speed
```

then go to the source and run make

```sh
cd $GOPATH/src/github.com/performancecopilot/speed
make
```

to install dependencies and build the package

### Getting the examples

All examples are executable go programs. Simply doing
Expand Down
17 changes: 17 additions & 0 deletions countunit_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions metricsemantics_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions metrictype_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions mmvdump/semantics_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions mmvdump/toctype_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions mmvdump/type_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions mmvdump/unit_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions mmvflag_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 46 additions & 0 deletions spaceunit_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 42 additions & 0 deletions timeunit_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f825f1e

Please sign in to comment.