mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
Merge pull request #237 from codysoyland/ci-tweaks
CI: Modify Docker Hub rules and use "make test-race" for running race detector
This commit is contained in:
commit
da503776e2
1 changed files with 18 additions and 17 deletions
|
|
@ -70,6 +70,9 @@ jobs:
|
|||
shard_width:
|
||||
type: string
|
||||
default: "20"
|
||||
test_make_target:
|
||||
type: string
|
||||
default: "test"
|
||||
test_flags:
|
||||
type: string
|
||||
default: ""
|
||||
|
|
@ -85,7 +88,7 @@ jobs:
|
|||
- add-github-auth
|
||||
- run: sudo apt-get install lsof
|
||||
- run:
|
||||
command: make test SHARD_WIDTH=<< parameters.shard_width >> TESTFLAGS="<< parameters.test_flags >>" GOARCH=<< parameters.goarch >>
|
||||
command: make << parameters.test_make_target >> SHARD_WIDTH=<< parameters.shard_width >> GOARCH=<< parameters.goarch >>
|
||||
no_output_timeout: 30m
|
||||
cluster-tests:
|
||||
executor:
|
||||
|
|
@ -187,7 +190,7 @@ workflows:
|
|||
- setup
|
||||
- test:
|
||||
name: test-race
|
||||
test_flags: -race -v -timeout=30m
|
||||
test_make_target: test-race
|
||||
requires:
|
||||
- setup
|
||||
- test:
|
||||
|
|
@ -208,20 +211,6 @@ workflows:
|
|||
- linter
|
||||
- check-license-headers
|
||||
- test-golang-1.14
|
||||
- dockerhub-upload:
|
||||
name: dockerhub-upload-stable
|
||||
tag_branch: true
|
||||
tag_tag: true
|
||||
tag_latest: true
|
||||
requires:
|
||||
- linter
|
||||
- check-license-headers
|
||||
- test-golang-1.14
|
||||
filters:
|
||||
branches:
|
||||
ignore: /.*/
|
||||
tags:
|
||||
only: /^v.*/
|
||||
- dockerhub-upload:
|
||||
name: dockerhub-upload-unstable
|
||||
tag_branch: true
|
||||
|
|
@ -234,5 +223,17 @@ workflows:
|
|||
filters:
|
||||
branches:
|
||||
only: enterprise
|
||||
- dockerhub-upload:
|
||||
name: dockerhub-upload-stable
|
||||
tag_branch: true
|
||||
tag_tag: true
|
||||
tag_latest: true
|
||||
requires:
|
||||
- linter
|
||||
- check-license-headers
|
||||
- test-golang-1.14
|
||||
filters:
|
||||
tags:
|
||||
ignore: /^v.*/
|
||||
only: /^v.*/
|
||||
branches:
|
||||
ignore: /.*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue