diff --git a/.travis.yml b/.travis.yml index 80dab93..45e3d27 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,24 @@ language: go -go: 1.13 +go: 1.14 sudo: false +os: + - linux + - osx + # - windows (would be nice to have, ensure tests pass first before enabling!) before_install: - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.24.0 - + script: - $GOPATH/bin/golangci-lint run - go test ./... + - go build -o services_$TRAVIS_OS_NAME ./cmd/services + +deploy: + provider: releases + api_key: $GH_TOKEN + file_glob: true + file: services* + skip_cleanup: true + on: + tags: true \ No newline at end of file diff --git a/README.md b/README.md index 2d819c7..f8d72c5 100644 --- a/README.md +++ b/README.md @@ -69,8 +69,12 @@ At a high level the services command currently: - pushes the cloned target - creates a PR from the new branch in the target to master in the target -Important Notes: +## Important notes: - We need to remove the local cache between requests. See https://github.com/rhd-gitops-example/services/issues/20. Until then, add `rm -rf ~/.promotion/cache; ` before subsequent requests. - New pull requests need new branches (i.e you cannot run the same command twice). Add `--branch [unique branch name]` before submitting further promotion PRs. See https://github.com/rhd-gitops-example/services/issues/21. - See https://github.com/rhd-gitops-example/services/issues/19 for an issue related to problems 'promoting' config from a source repo into a gitops repo. + +## Release process + +When a new tag is pushed with the `v` prefix, a GitHub release will be created with binaries produced for 64-bit Linux, and Mac automatically.