Skip to content
Snippets Groups Projects
Unverified Commit be11801d authored by Rohith Jayawardene's avatar Rohith Jayawardene Committed by GitHub
Browse files

- cleaning up the travis file (#296)

parent c0c3cf41
No related branches found
No related tags found
No related merge requests found
...@@ -16,13 +16,16 @@ install: ...@@ -16,13 +16,16 @@ install:
- go get github.com/mattn/goveralls - go get github.com/mattn/goveralls
script: script:
- make test - make test
- if ([[ ${TRAVIS_BRANCH} == "master" ]] && [[ ${TRAVIS_EVENT_TYPE} == "push" ]]) - if ([[ ${TRAVIS_BRANCH} == "master" ]] && [[ ${TRAVIS_EVENT_TYPE} == "push" ]]) || [[ -n ${TRAVIS_TAG} ]]; then
|| [[ -n ${TRAVIS_TAG} ]]; then NAME=GOOS=windows GOARCH=amd64 go build -o bin/keycloak-proxy-windows-amd64.exe; 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 NAME=GOOS=linux GOARCH=amd64 go build -o bin/keycloak-proxy-linux-amd64;
login -u ${REGISTRY_USERNAME} -p ${REGISTRY_TOKEN} -e ${AUTHOR_EMAIL} ${REGISTRY}; docker login -u ${REGISTRY_USERNAME} -p ${REGISTRY_TOKEN} ${REGISTRY};
VERSION=${TRAVIS_TAG:-latest} make docker-release; fi VERSION=${TRAVIS_TAG:-latest} make docker-release;
- if ([[ ${TRAVIS_BRANCH} == "master" ]] && [[ ${TRAVIS_EVENT_TYPE} == "push" ]]); fi
then go get github.com/mattn/goveralls; goveralls -service=travis-ci; make bench; - if ([[ ${TRAVIS_BRANCH} == "master" ]] && [[ ${TRAVIS_EVENT_TYPE} == "push" ]]); then
go get github.com/mattn/goveralls;
goveralls -service=travis-ci;
make bench;
fi fi
deploy: deploy:
provider: releases provider: releases
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment