diff --git a/.travis.yml b/.travis.yml index e0792890dbf..f96024ab445 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/Taskfile.yml b/Taskfile.yml index e72d85d6fcc..aea81983b6a 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -7,7 +7,7 @@ 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 @@ -15,14 +15,21 @@ tasks: 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: