Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ script:
# Build and test
- ./bin/task build
- ./bin/task test
- ./bin/task test-legacy

after_success:
- bash <(curl -s https://codecov.io/bash) -cF unittests,integration
Expand Down
13 changes: 10 additions & 3 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,29 @@ tasks:
- go build -v -i {{.LDFLAGS}}

test:
desc: Run the full testsuite
desc: Run the full testsuite, `legacy` will be skipped
cmds:
- task: test-unit
- task: test-integration

test-unit:
desc: Run unit tests only
cmds:
- go test -short {{ default "-v" .GOFLAGS }} -coverprofile=coverage_unit.txt {{ default "./..." .TARGETS }}
- go test -short {{ default "-v" .GOFLAGS }} -coverprofile=coverage_unit.txt {{ default .DEFAULT_TARGETS .TARGETS }}

test-integration:
desc: Run integration tests only
cmds:
- go test -run Integration {{ default "-v" .GOFLAGS }} -coverprofile=coverage_integ.txt {{ default "./..." .TARGETS }} {{.TEST_LDFLAGS}}
- go test -run Integration {{ default "-v" .GOFLAGS }} -coverprofile=coverage_integ.txt {{ default .DEFAULT_TARGETS .TARGETS }} {{.TEST_LDFLAGS}}

test-legacy:
desc: Run tests for the `legacy` package
cmds:
- go test {{ default "-v" .GOFLAGS }} ./legacy/...

vars:
DEFAULT_TARGETS: "./arduino/... ./auth/... ./cli/... ./commands/... ./executils/... ./version/..."

# build vars
VERSIONSTRING: "0.3.6-alpha.preview"
COMMIT:
Expand Down