Skip to content

Commit

Permalink
Move the grpc integration tests to a separate pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
aduffeck committed Mar 11, 2021
1 parent 3ac10d7 commit 39f690b
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def main(ctx):
return [
buildAndPublishDocker(),
buildOnly(),
testIntegration(),
release(),
litmusOcisOldWebdav(),
litmusOcisNewWebdav(),
Expand Down Expand Up @@ -256,6 +257,39 @@ def buildOnly():
]
}

def testIntegration():
return {
"kind": "pipeline",
"type": "docker",
"name": "test-integration",
"platform": {
"os": "linux",
"arch": "amd64",
},
"trigger": {
"event": {
"include": [
"pull_request",
],
},
},
"steps": [
{
"name": "test",
"image": "registry.cern.ch/docker.io/library/golang:1.13",
"commands": [
"make test-integration",
],
"environment": {
"REDIS_ADDRESS": "redis:6379",
},
}
],
"services": [
redisService(),
],
}

def release():
return {
"kind": "pipeline",
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ build-reva: imports
go build -ldflags ${BUILD_FLAGS} -o ./cmd/reva/reva ./cmd/reva

test: off
go test -race ./...
go test -race $$(go list ./... | grep -v /tests/integration)

test-integration: build-ci
cd tests/integration && go test -race ./...

lint:
go run tools/check-license/check-license.go
Expand Down

0 comments on commit 39f690b

Please sign in to comment.