Unverified Commit be11801d authored by Rohith Jayawardene's avatar Rohith Jayawardene Committed by GitHub
Browse files

- cleaning up the travis file (#296)

parent c0c3cf41
......@@ -16,13 +16,16 @@ install:
- go get github.com/mattn/goveralls
script:
- make test
- if ([[ ${TRAVIS_BRANCH} == "master" ]] && [[ ${TRAVIS_EVENT_TYPE} == "push" ]])
|| [[ -n ${TRAVIS_TAG} ]]; then NAME=GOOS=windows GOARCH=amd64 go build -o bin/keycloak-proxy-windows-amd64.exe;
NAME=GOOS=linux GOARCH=amd64 go build -o bin/keycloak-proxy-linux-amd64; docker
login -u ${REGISTRY_USERNAME} -p ${REGISTRY_TOKEN} -e ${AUTHOR_EMAIL} ${REGISTRY};
VERSION=${TRAVIS_TAG:-latest} make docker-release; fi
- if ([[ ${TRAVIS_BRANCH} == "master" ]] && [[ ${TRAVIS_EVENT_TYPE} == "push" ]]);
then go get github.com/mattn/goveralls; goveralls -service=travis-ci; make bench;
- if ([[ ${TRAVIS_BRANCH} == "master" ]] && [[ ${TRAVIS_EVENT_TYPE} == "push" ]]) || [[ -n ${TRAVIS_TAG} ]]; then
NAME=GOOS=windows GOARCH=amd64 go build -o bin/keycloak-proxy-windows-amd64.exe;
NAME=GOOS=linux GOARCH=amd64 go build -o bin/keycloak-proxy-linux-amd64;
docker login -u ${REGISTRY_USERNAME} -p ${REGISTRY_TOKEN} ${REGISTRY};
VERSION=${TRAVIS_TAG:-latest} make docker-release;
fi
- if ([[ ${TRAVIS_BRANCH} == "master" ]] && [[ ${TRAVIS_EVENT_TYPE} == "push" ]]); then
go get github.com/mattn/goveralls;
goveralls -service=travis-ci;
make bench;
fi
deploy:
provider: releases
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment