Skip to content

Commit

Permalink
Merge branch 'develop' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
apoorvam authored May 20, 2019
2 parents ed6af4e + 887e5ae commit 9506a77
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@
# Environment file
.env

# Packages
dist/*
# Coverage files
coverage*

# IDE files
.idea/*
.idea/*
63 changes: 63 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Goreleaser documentation at http://goreleaser.com
project_name: dunner
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- 386
- amd64
- arm
- arm64
archives:
- replacements:
386: i386
amd64: x86_64
checksum:
name_template: '{{ .ProjectName }}_checksums.txt'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- Merge pull request
- Merge branch
- Update readme
snapshot:
name_template: "{{.ProjectName}}_{{.Tag}}"

brew:
github:
owner: leopardslab
name: homebrew-dunner
folder: Formula
homepage: https://github.com/leopardslab/Dunner
description: A Docker based task runner tool
test: |
system "#{bin}/dunner version"
nfpm:
name_template: '{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
homepage: https://github.com/leopardslab/Dunner
description: A Docker based task runner tool
license: MIT
formats:
- deb
- rpm
dependencies:
- git
recommends:
- rpm
snapcraft:
name_template: '{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
summary: A Docker based task runner tool
description: |
Dunner is a task runner tool like Grunt but used Docker images like CircleCI do. |
You can define tasks and steps of the tasks in your `.dunner.yaml` file and then run these steps with `Dunner do taskname`
grade: stable
confinement: devmode
publish: false
28 changes: 25 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,38 @@ go:
- master

env:
- DEP_VERSION="0.5.0"
global:
- DEP_VERSION="0.5.0"
- PATH=/snap/bin:$PATH

services:
- docker
addons:
apt:
packages:
- rpm
- snapd

before_install:
- curl -L -s https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 -o $GOPATH/bin/dep
- chmod +x $GOPATH/bin/dep

install:
- dep ensure -v
- $GOPATH/bin/dep ensure -v
- sudo snap install snapcraft --classic

script: go test -v ./...
script:
- make ci

after_success:
- test -n "$TRAVIS_TAG" && snapcraft login --with snap.login

deploy:
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash
verbose: true
on:
tags: true
condition: $TRAVIS_OS_NAME = linux
master: true
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ install:
build: install
@$(GOINSTALL) -ldflags "-X main.version=$(VERSION)-$(SHA) -s"

ci: test

test: build
@go test -v $(ALL_PACKAGES)

Expand All @@ -47,3 +49,9 @@ test-coverage:
go test -coverprofile=coverage.out -covermode=count $(pkg);\
tail -n +2 coverage.out >> coverage-all.out;)
@go tool cover -html=coverage-all.out -o coverage.html

release:
@echo "Make sure you run this on master branch to make a release"
@echo "Adding tag for version: $(VERSION)"
git tag -a $(VERSION) -m "Release version $(VERSION)"
@echo "Run \"git push origin $(VERSION)\" to push tag to remote which makes a dunner release!"

0 comments on commit 9506a77

Please sign in to comment.