Skip to content
This repository has been archived by the owner on Jan 14, 2022. It is now read-only.

Commit

Permalink
simplify travis setup
Browse files Browse the repository at this point in the history
  • Loading branch information
nickg committed May 18, 2017
1 parent b49798f commit e43c0c6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
@@ -1,7 +1,5 @@
language: go
go: 1.8.1
install:
- make setup
script:
- make setup
- make ci
- make samples
13 changes: 8 additions & 5 deletions Makefile
Expand Up @@ -35,10 +35,9 @@ lint: ## Run all the linters
--deadline=10m \
./...

ci: lint test ## Run all the tests and code checks
ci: build lint test samples ## Run all the tests and code checks as travis-ci does

build: ## Build a beta version of goreleaser
./makeshellfn.sh > shellfn.go
go build

# Absolutely awesome: http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
Expand All @@ -47,13 +46,17 @@ help:

.DEFAULT_GOAL := build

generate: ## regenerate shell code from client9/posixshell
./makeshellfn.sh > shellfn.go

samples:
samples: ## make sample donwloaders
./godownloader -repo spf13/hugo > samples/godownloader-hugo.sh
./godownloader -repo goreleaser/goreleaser > samples/godownloader-goreleaser.sh
.PHONY: samples

clean:
.PHONY: ci help generate samples clean

clean: ## clean up everything
go clean ./...
rm -f godownloader
rm -rf ./bin
git gc --aggressive
Expand Down

0 comments on commit e43c0c6

Please sign in to comment.