Skip to content

Commit

Permalink
using tasks repo for generating license
Browse files Browse the repository at this point in the history
  • Loading branch information
zoli committed Apr 23, 2016
1 parent 479f115 commit 8888076
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 76 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ addons:
- libqt5opengl5-dev

install:
- make travis glide
- make travis glide tasks

script:
- make travis_test
Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,23 @@ build:
fmt:
@go fmt ./main/...
license:
@go run gen_license.go main
@go run $(GOPATH)/src/github.com/limetext/tasks/gen_license.go -scan=main

check_fmt:
ifneq ($(shell gofmt -l main),)
$(error code not fmted, run make fmt. $(shell gofmt -l main))
endif

check_license:
ifneq ($(shell go run gen_license.go main),)
$(error license is not added to all files, run make license)
endif
@go run $(GOPATH)/src/github.com/limetext/tasks/gen_license.go -scan=main -check

tasks:
go get -d -u github.com/limetext/tasks
glide:
go get -v -u github.com/Masterminds/glide
glide install

travis:
travis: tasks
ifeq ($(TRAVIS_OS_NAME),osx)
brew update
brew install oniguruma python3 qt5
Expand Down
70 changes: 0 additions & 70 deletions gen_license.go

This file was deleted.

0 comments on commit 8888076

Please sign in to comment.