Skip to content

Commit b861814

Browse files
committed
rebalanced CI jobs to run race and swagger specs tests only once
Signed-off-by: Frederic BIDON <[email protected]>
1 parent 707a008 commit b861814

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

.travis.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,39 @@ jobs:
1313
script:
1414
- gotestsum -f short-verbose -- ./...
1515

16-
# include linting job, but only for latest go version and amd64 arch
16+
# include large spec validation sample (run once)
17+
- go: 1.x
18+
arch: amd64
19+
script:
20+
- gotestsum -f short-verbose -- -timeout=30m -args -enable-go-swagger ./...
21+
22+
# include linting job, but only for latest go version and amd64 arch (run once)
23+
- go: 1.x
24+
arch: amd64
25+
install:
26+
go get -u github.com/go-openapi/runtime@master
27+
script:
28+
- gotestsum -f short-verbose -- -timeout=30m github.com/go-openapi/runtime/...
29+
30+
# include go-openapi/runtime non reg job (run once)
1731
- go: 1.x
1832
arch: amd64
1933
install:
2034
go get github.com/golangci/golangci-lint/cmd/golangci-lint
2135
script:
2236
- golangci-lint run --new-from-rev master
2337

38+
# include -race test on short tests only (run once)
39+
- go: 1.x
40+
arch: amd64
41+
script:
42+
- gotestsum -f short-verbose -- -race ./...
43+
2444
install:
2545
- GO111MODULE=off go get -u gotest.tools/gotestsum
2646
language: go
2747
notifications:
2848
slack:
2949
secure: EmObnQuM9Mw8J9vpFaKKHqSMN4Wsr/A9+v7ewAD5cEhA0T1P4m7MbJMiJOhxUhj/X+BFh2DamW+P2lT8mybj5wg8wnkQ2BteKA8Tawi6f9PRw2NRheO8tAi8o/npLnlmet0kc93mn+oLuqHw36w4+j5mkOl2FghkfGiUVhwrhkCP7KXQN+3TU87e+/HzQumlJ3nsE+6terVxkH3PmaUTsS5ONaODZfuxFpfb7RsoEl3skHf6d+tr+1nViLxxly7558Nc33C+W1mr0qiEvMLZ+kJ/CpGWBJ6CUJM3jm6hNe2eMuIPwEK2hxZob8c7n22VPap4K6a0bBRoydoDXaba+2sD7Ym6ivDO/DVyL44VeBBLyIiIBylDGQdZH+6SoWm90Qe/i7tnY/T5Ao5igT8f3cfQY1c3EsTfqmlDfrhmACBmwSlgkdVBLTprHL63JMY24LWmh4jhxsmMRZhCL4dze8su1w6pLN/pD1pGHtKYCEVbdTmaM3PblNRFf12XB7qosmQsgUndH4Vq3bTbU0s1pKjeDhRyLvFzvR0TBbo0pDLEoF1A/i5GVFWa7yLZNUDudQERRh7qv/xBl2excIaQ1sV4DSVm7bAE9l6Kp+yeHQJW2uN6Y3X8wu9gB9nv9l5HBze7wh8KE6PyWAOLYYqZg9/sAtsv/2GcQqXcKFF1zcA=
3050
script:
31-
- gotestsum -f short-verbose -- -race ./...
3251
- gotestsum -f short-verbose -- -timeout=20m -coverprofile=coverage.txt -covermode=atomic -args -enable-long ./...
33-
- gotestsum -f short-verbose -- -timeout=30m -args -enable-go-swagger ./...
34-
- go get -u github.com/go-openapi/runtime@master
35-
- gotestsum -f short-verbose -- -timeout=30m github.com/go-openapi/runtime/...

0 commit comments

Comments
 (0)