-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from senthilrch/senthilrch
PR for v0.7.0
- Loading branch information
Showing
17 changed files
with
540 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,54 @@ | ||
dist: bionic | ||
language: go | ||
go: | ||
- 1.13.8 | ||
- 1.14.2 | ||
services: | ||
- docker | ||
env: | ||
# Enable docker buildx plugin | ||
- DOCKER_CLI_EXPERIMENTAL=enabled | ||
before_install: | ||
# Install latest stable version of docker-engine as described in docker documentation:- | ||
# https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository | ||
- sudo apt-get remove docker docker-engine docker.io containerd runc | ||
- sudo apt-get update | ||
- sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common -y | ||
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | ||
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | ||
- sudo apt-get install docker-ce docker-ce-cli containerd.io -y | ||
install: | ||
# Install dependencies required for unit test coverage | ||
- go get golang.org/x/tools/cmd/cover | ||
- go get github.com/mattn/goveralls | ||
- go get -u golang.org/x/lint/golint | ||
script: | ||
- hack/verify-codegen.sh | ||
- hack/verify-boilerplate.sh | ||
- hack/verify-gofmt.sh | ||
- hack/verify-golint.sh | ||
- hack/verify-govet.sh | ||
- make fledged-dev | ||
- make GIT_BRANCH=${TRAVIS_BRANCH} build-images | ||
- make test | ||
- $(go env GOPATH | awk 'BEGIN{FS=":"} {print $1}')/bin/goveralls -coverprofile=coverage.out -service=travis-ci | ||
stages: | ||
# This stage builds fledged controller image, performs tests in "hack" and runs unit tests with coverage | ||
- build_amd64 | ||
# This stage builds multi-arch images for fledged controller, fledged client and operator (only for PR builds) | ||
- name: build_multiarch | ||
if: type = pull_request | ||
# This stage builds all three multi-arch images and pushes them to docker hub (only for release tags) | ||
- name: build_release | ||
if: tag IS present | ||
jobs: | ||
include: | ||
- stage: build_amd64 | ||
script: | ||
- hack/verify-codegen.sh | ||
- hack/verify-boilerplate.sh | ||
- hack/verify-gofmt.sh | ||
- hack/verify-golint.sh | ||
- hack/verify-govet.sh | ||
- make fledged-amd64 | ||
- make test | ||
- $(go env GOPATH | awk 'BEGIN{FS=":"} {print $1}')/bin/goveralls -coverprofile=coverage.out -service=travis-ci | ||
- stage: build_multiarch | ||
script: | ||
# BUILD_OUTPUT is left empty to indicate buildx to leave the built images in it's cache | ||
- travis_wait 60 make GIT_BRANCH=${TRAVIS_BRANCH} BUILD_OUTPUT= release | ||
- stage: build_release | ||
script: | ||
- docker login -u ${DOCKERHUB_USER} -p ${DOCKERHUB_PSWD} | ||
# BUILD_OUTPUT=--push requests buildx to push the built images to docker hub | ||
- travis_wait 60 make GIT_BRANCH=${TRAVIS_BRANCH} BUILD_OUTPUT=--push release | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.