Skip to content

Commit

Permalink
Add .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch committed Nov 28, 2017
1 parent 7b20f17 commit 9e4d5b8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: go

go_import_path: 4d63.com/tldr

script:
- make install
- git add .
- git diff --cached --exit-code
- $GOPATH/bin/tldr curl
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
.PHONY: generate data setup

install: setup data generate
go get ./...
go install

release: setup
release: setup-release
git tag -a $(VERSION) -m "$(VERSION)"
git push origin $(VERSION)
goreleaser --rm-dist --parallelism 1 || (git tag -d $(VERSION) && git push --delete origin $(VERSION))
Expand All @@ -26,8 +27,10 @@ generate:
cd data/windows && embedfiles -out ../../data_windows.go .

setup:
go get github.com/goreleaser/goreleaser
go get 4d63.com/embedfiles

setup-release:
go get github.com/goreleaser/goreleaser
gem install --no-ri --no-rdoc fpm
sudo apt-get install -y rpm
sudo apt-get install -y bsdtar

0 comments on commit 9e4d5b8

Please sign in to comment.