Browse Source
Merge pull request #81 from zcash-hackworks/ci_artifact_pass
pass artifacts to test stage and fix race test
service_pr
Marshall Gaucher
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
15 additions and
5 deletions
-
.gitlab-ci.yml
-
Makefile
|
|
@ -34,10 +34,14 @@ before_script: |
|
|
|
script: |
|
|
|
- made docs |
|
|
|
|
|
|
|
build-linux: |
|
|
|
build:build-linux: |
|
|
|
stage: build |
|
|
|
script: |
|
|
|
- make |
|
|
|
artifacts: |
|
|
|
paths: |
|
|
|
- ./server |
|
|
|
- ./ingest |
|
|
|
|
|
|
|
.build-windows: |
|
|
|
stage: build |
|
|
@ -60,20 +64,26 @@ build-linux: |
|
|
|
# ************************************************************************/ |
|
|
|
# TEST |
|
|
|
# ************************************************************************/ |
|
|
|
test-unittest: |
|
|
|
test:test-unittest: |
|
|
|
stage: test |
|
|
|
dependencies: |
|
|
|
- build:build-linux |
|
|
|
script: |
|
|
|
- make test |
|
|
|
allow_failure: true |
|
|
|
|
|
|
|
test-race-conditions: |
|
|
|
test:test-race-conditions: |
|
|
|
stage: test |
|
|
|
dependencies: |
|
|
|
- build:build-linux |
|
|
|
script: |
|
|
|
- make race |
|
|
|
allow_failure: true |
|
|
|
|
|
|
|
test-coverage: |
|
|
|
test:test-coverage: |
|
|
|
stage: test |
|
|
|
dependencies: |
|
|
|
- build:build-linux |
|
|
|
script: |
|
|
|
- make coverage |
|
|
|
- make coverage_report |
|
|
|
|
|
@ -31,7 +31,7 @@ test: |
|
|
|
|
|
|
|
# Run data race detector
|
|
|
|
race: |
|
|
|
@go test -v -race -short ./... |
|
|
|
GO111MODULE=on CGO_ENABLED=1 go test -v -race -short ./... |
|
|
|
|
|
|
|
# Run memory sanitizer (need to ensure proper build flag is set)
|
|
|
|
msan: |
|
|
|