Skip to content

Commit

Permalink
Migrate logging, monitoring, kubeless tests to Prow (kyma-project#1922)
Browse files Browse the repository at this point in the history
* Migrate logging, monitoring, kubeless tests to Prow
  • Loading branch information
lilitgh authored and sayanh committed Dec 6, 2018
1 parent 93117a6 commit 79ac067
Show file tree
Hide file tree
Showing 16 changed files with 364 additions and 0 deletions.
29 changes: 29 additions & 0 deletions tests/kubeless-integration/Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions tests/kubeless-integration/Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"

required = [
"github.com/golang/lint/golint"
]
4 changes: 4 additions & 0 deletions tests/kubeless-integration/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ podTemplate(label: label,
}
}

stage("install dependencies $application") {
execute("make resolve", workDir, componentDir)
}

stage("code quality $application") {
execute("make validate", workDir, componentDir)
}
Expand Down
33 changes: 33 additions & 0 deletions tests/kubeless-integration/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
APP_NAME = kubeless-integration-tests
IMG = $(DOCKER_PUSH_REPOSITORY)$(DOCKER_PUSH_DIRECTORY)/$(APP_NAME)
TAG = $(DOCKER_TAG)


resolve:
dep ensure -vendor-only -v

validate:
go build -o golint-vendored ./vendor/github.com/golang/lint/golint
./golint-vendored
rm golint-vendored

build:
go generate ./...
CGO_ENABLED=0 go build -o ./bin/app $(buildpath)

build-image:
docker build -t $(APP_NAME):latest .

push-image:
docker tag $(APP_NAME) $(IMG):$(TAG)
docker push $(IMG):$(TAG)

.PHONY: ci-pr
ci-pr: resolve validate build build-image push-image

.PHONY: ci-master
ci-master: resolve validate build build-image push-image

.PHONY: ci-release
ci-release: resolve validate build build-image push-image

29 changes: 29 additions & 0 deletions tests/kubeless/Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions tests/kubeless/Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"

required = [
"github.com/golang/lint/golint"
]
4 changes: 4 additions & 0 deletions tests/kubeless/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ podTemplate(label: label,
}
}

stage("install dependencies $application") {
execute("make resolve", workDir, componentDir)
}

stage("code quality $application") {
execute("make validate", workDir, componentDir)
}
Expand Down
33 changes: 33 additions & 0 deletions tests/kubeless/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
APP_NAME = kubeless-tests
IMG = $(DOCKER_PUSH_REPOSITORY)$(DOCKER_PUSH_DIRECTORY)/$(APP_NAME)
TAG = $(DOCKER_TAG)


resolve:
dep ensure -vendor-only -v

validate:
go build -o golint-vendored ./vendor/github.com/golang/lint/golint
./golint-vendored
rm golint-vendored

build:
go generate ./...
CGO_ENABLED=0 go build -o ./bin/app $(buildpath)

build-image:
docker build -t $(APP_NAME):latest .

push-image:
docker tag $(APP_NAME) $(IMG):$(TAG)
docker push $(IMG):$(TAG)

.PHONY: ci-pr
ci-pr: resolve validate build build-image push-image

.PHONY: ci-master
ci-master: resolve validate build build-image push-image

.PHONY: ci-release
ci-release: resolve validate build build-image push-image

29 changes: 29 additions & 0 deletions tests/logging/Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions tests/logging/Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"

required = [
"github.com/golang/lint/golint"
]
4 changes: 4 additions & 0 deletions tests/logging/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ podTemplate(label: label,
}
}

stage("install dependencies $application") {
execute("make resolve", workDir, componentDir)
}

stage("code quality $application") {
execute("make validate", workDir, componentDir)
}
Expand Down
33 changes: 33 additions & 0 deletions tests/logging/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
APP_NAME = logging-tests
IMG = $(DOCKER_PUSH_REPOSITORY)$(DOCKER_PUSH_DIRECTORY)/$(APP_NAME)
TAG = $(DOCKER_TAG)


resolve:
dep ensure -vendor-only -v

validate:
go build -o golint-vendored ./vendor/github.com/golang/lint/golint
./golint-vendored
rm golint-vendored

build:
go generate ./...
CGO_ENABLED=0 go build -o ./bin/app $(buildpath)

build-image:
docker build -t $(APP_NAME):latest .

push-image:
docker tag $(APP_NAME) $(IMG):$(TAG)
docker push $(IMG):$(TAG)

.PHONY: ci-pr
ci-pr: resolve validate build build-image push-image

.PHONY: ci-master
ci-master: resolve validate build build-image push-image

.PHONY: ci-release
ci-release: resolve validate build build-image push-image

29 changes: 29 additions & 0 deletions tests/test-logging-monitoring/Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions tests/test-logging-monitoring/Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"

required = [
"github.com/golang/lint/golint"
]
4 changes: 4 additions & 0 deletions tests/test-logging-monitoring/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ podTemplate(label: label,
}
}

stage("install dependencies $application") {
execute("make resolve", workDir, componentDir)
}

stage("code quality $application") {
execute("make validate", workDir, componentDir)
}
Expand Down
Loading

0 comments on commit 79ac067

Please sign in to comment.