Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Salzmann authored Aug 1, 2018
2 parents 108cb91 + 31273cd commit 90a5f17
Show file tree
Hide file tree
Showing 56 changed files with 880 additions and 293 deletions.
3 changes: 0 additions & 3 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
* Bug reports and feature requests are welcome in [the issues][issues]
* For questions and discussion there's the [Slack room][slack] ([invititation here][slackinvite])
* Pull Requests are welcome. For more complex changes and features it's
recommended to open an issue with the feature request first
* Documentation contributions are as important as code contributions

[issues]: https://github.com/go-task/task/issues
[slack]: https://gophers.slack.com/messages/task
[slackinvite]: https://invite.slack.golangbridge.org/
3 changes: 0 additions & 3 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<!--
For questions and general talk there's the Slack room: https://gophers.slack.com/messages/task
Invite to the Slack is available in this link: https://invite.slack.golangbridge.org/
If relevant, include the following information:
- Task version
- OS
Expand Down
83 changes: 70 additions & 13 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
branch = "master"
name = "github.com/Masterminds/sprig"

[[constraint]]
branch = "master"
name = "github.com/imdario/mergo"

[[constraint]]
branch = "master"
name = "github.com/mattn/go-zglob"
Expand Down
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
[![Join Slack room](https://img.shields.io/badge/%23task-chat%20room-blue.svg)](https://gophers.slack.com/messages/task)
[![Build Status](https://travis-ci.org/go-task/task.svg?branch=master)](https://travis-ci.org/go-task/task)

# Task - A task runner / simpler Make alternative written in Go
Expand Down Expand Up @@ -127,7 +126,7 @@ tasks:
### OS specific task
If you add a `Taskfile_{{GOOS}}.yml` you can override or amend your taskfile
If you add a `Taskfile_{{GOOS}}.yml` you can override or amend your Taskfile
based on the operating system.

Example:
Expand All @@ -146,13 +145,18 @@ tasks:
Taskfile_linux.yml:

```yml
version: '2'
tasks:
build:
cmds:
- echo "linux"
```

Will print out `linux` and not default.
Will print out `linux` and not `default`.

Keep in mind that the version of the files should match. Also, when redefining
a task the whole task is replaced, properties of the task are not merged.

It's also possible to have an OS specific `Taskvars.yml` file, like
`Taskvars_windows.yml`, `Taskfile_linux.yml`, or `Taskvars_darwin.yml`. See the
Expand Down Expand Up @@ -325,7 +329,6 @@ If you prefer this check to be made by the content of the files, instead of
its timestamp, just set the `method` property to `checksum`.
You will probably want to ignore the `.task` folder in your `.gitignore` file
(It's there that Task stores the last checksum).
This feature is still experimental and can change until it's stable.

```yml
version: '2'
Expand Down
38 changes: 12 additions & 26 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,13 @@ vars:
sh: git log -n 1 --format=%h

GO_PACKAGES:
.
./cmd/task
./internal/args
./internal/compiler
./internal/compiler/v1
./internal/compiler/v2
./internal/execext
./internal/logger
./internal/osext
./internal/output
./internal/status
./internal/taskfile
./internal/taskfile/version
./internal/templater
sh: go list ./...

tasks:
# compiles current source code and make "task" executable available on
# $GOPATH/bin/task{.exe}
default:
cmds:
- task: test

install:
desc: Installs Task
cmds:
Expand All @@ -35,8 +24,6 @@ tasks:
cmds:
- task: go-get
vars: {REPO: github.com/golang/lint/golint}
- task: go-get
vars: {REPO: github.com/asticode/go-astitodo/astitodo}
- task: go-get
vars: {REPO: github.com/golang/dep/cmd/dep}
- task: go-get
Expand All @@ -58,14 +45,14 @@ tasks:
lint:
desc: Runs golint
cmds:
- golint {{.GO_PACKAGES}}
- golint {{catLines .GO_PACKAGES}}
silent: true

test:
desc: Runs test suite
deps: [install]
cmds:
- go test {{.GO_PACKAGES}}
- go test {{catLines .GO_PACKAGES}}

test-release:
desc: Tests release process without publishing
Expand All @@ -77,12 +64,6 @@ tasks:
cmds:
- godownloader --repo go-task/task -o install-task.sh

todo:
desc: Prints TODO comments present in the code
cmds:
- astitodo {{.GO_PACKAGES}}
silent: true

ci:
cmds:
- task: go-get
Expand All @@ -93,3 +74,8 @@ tasks:
go-get:
cmds:
- go get -u {{.REPO}}

packages:
cmds:
- echo '{{.GO_PACKAGES}}'
silent: true
22 changes: 0 additions & 22 deletions internal/osext/osext.go

This file was deleted.

5 changes: 2 additions & 3 deletions internal/status/glob.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,16 @@ import (
"path/filepath"
"sort"

"github.com/go-task/task/internal/osext"

"github.com/mattn/go-zglob"
"mvdan.cc/sh/shell"
)

func glob(dir string, globs []string) (files []string, err error) {
for _, g := range globs {
if !filepath.IsAbs(g) {
g = filepath.Join(dir, g)
}
g, err = osext.Expand(g)
g, err = shell.Expand(g, nil)
if err != nil {
return nil, err
}
Expand Down
Loading

0 comments on commit 90a5f17

Please sign in to comment.