File tree 3 files changed +22
-18
lines changed
3 files changed +22
-18
lines changed Original file line number Diff line number Diff line change 1
1
.idea /
2
2
3
- .coveralls.yml
3
+ npm-debug.log
4
4
coverage.out
5
- public /vendor /
6
5
db.sqlite3
6
+
7
+ public /vendor /
7
8
bindata.go
Original file line number Diff line number Diff line change 6
6
- tip
7
7
before_install :
8
8
- npm install -g bower
9
+ install :
9
10
- bower install
10
- install : make bindata
11
+ - make deps
11
12
script :
12
- - go get -t -v ./...
13
- - go tool vet .
14
- - go test -v -race ./...
13
+ - make tests
15
14
- go test -v -covermode=count -coverprofile=coverage.out
16
15
- $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN
17
16
env :
Original file line number Diff line number Diff line change @@ -4,30 +4,34 @@ GOTOOLS = github.com/mattn/goveralls golang.org/x/tools/cmd/cover github.com/jte
4
4
5
5
default : tests
6
6
7
- deps :
8
- @echo " --> Getting dependencies"
9
- @$(foreach gotool,$(GOTOOLS ) ,$(shell go get -u $(gotool ) ) )
7
+ tests : format
8
+ @echo " --> Running tests"
9
+ @go tool vet .
10
+ @go test -v ./...
10
11
11
- format :
12
- @echo " --> Running go fmt "
13
- @go fmt ./...
12
+ tools :
13
+ @echo " --> Getting tools "
14
+ @$( foreach gotool, $( GOTOOLS ) , $( shell go get -u $( gotool ) ) )
14
15
15
- tests :
16
- @echo " --> Running go test "
17
- @go test -v ./...
16
+ deps : bindata
17
+ @echo " --> Getting dependencies "
18
+ @go get -t -v ./...
18
19
19
- install : bindata format
20
+ install : deps
20
21
@echo " --> Build and install binary"
21
- @go get ./...
22
22
@go install -ldflags $(GOLDFLAGS ) ./...
23
23
24
- bindata : deps
24
+ bindata : tools
25
25
@echo " --> Generate bindata"
26
26
@go-bindata -pkg tornote templates/... \
27
27
public/vendor/jquery/dist/jquery.slim.min.js \
28
28
public/vendor/sjcl/sjcl.js \
29
29
public/main.js \
30
30
public/styles.css
31
31
32
+ format :
33
+ @echo " --> Running go fmt"
34
+ @go fmt ./...
35
+
32
36
33
37
.PHONY : all deps format tests install bindata
You can’t perform that action at this time.
0 commit comments