File tree 2 files changed +11
-3
lines changed
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ script:
23
23
# Build and test
24
24
- ./bin/task build
25
25
- ./bin/task test
26
+ - ./bin/task test-legacy
26
27
27
28
after_success :
28
29
- bash <(curl -s https://codecov.io/bash) -cF unittests,integration
Original file line number Diff line number Diff line change 7
7
- go build -v -i {{.LDFLAGS}}
8
8
9
9
test :
10
- desc : Run the full testsuite
10
+ desc : Run the full testsuite, `legacy` will be skipped
11
11
cmds :
12
12
- task : test-unit
13
13
- task : test-integration
14
14
15
15
test-unit :
16
16
desc : Run unit tests only
17
17
cmds :
18
- - go test -short {{ default "-v" .GOFLAGS }} -coverprofile=coverage_unit.txt {{ default "./..." .TARGETS }}
18
+ - go test -short {{ default "-v" .GOFLAGS }} -coverprofile=coverage_unit.txt {{ default .DEFAULT_TARGETS .TARGETS }}
19
19
20
20
test-integration :
21
21
desc : Run integration tests only
22
22
cmds :
23
- - go test -run Integration {{ default "-v" .GOFLAGS }} -coverprofile=coverage_integ.txt {{ default "./..." .TARGETS }} {{.TEST_LDFLAGS}}
23
+ - go test -run Integration {{ default "-v" .GOFLAGS }} -coverprofile=coverage_integ.txt {{ default .DEFAULT_TARGETS .TARGETS }} {{.TEST_LDFLAGS}}
24
+
25
+ test-legacy :
26
+ desc : Run tests for the `legacy` package
27
+ cmds :
28
+ - go test {{ default "-v" .GOFLAGS }} ./legacy/...
24
29
25
30
vars :
31
+ DEFAULT_TARGETS : " ./arduino/... ./auth/... ./cli/... ./commands/... ./executils/... ./version/..."
32
+
26
33
# build vars
27
34
VERSIONSTRING : " 0.3.6-alpha.preview"
28
35
COMMIT :
You can’t perform that action at this time.
0 commit comments