From 350982258ee9e9421de8124ba039963ce565b59b Mon Sep 17 00:00:00 2001 From: tom whiston Date: Tue, 20 Mar 2018 22:40:54 +0000 Subject: [PATCH] skip goreleaser install on windows and warn --- CONTRIBUTING.md | 2 ++ README.md | 3 ++- Taskfile.yml | 8 +++++--- circle.yml | 1 + 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 62500e2a..7f870d11 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -38,6 +38,8 @@ go get ./... go get -u github.com/go-task/task/cmd/task task deps ``` +Windows users will additionally need to manually install goreleaser from https://github.com/goreleaser/goreleaser/releases + 4) Set up config, database & run migrations diff --git a/README.md b/README.md index e5d1a927..92312c03 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,8 @@ - [Releases](https://github.com/ansible-semaphore/semaphore/releases) - [Install Instructions](https://github.com/ansible-semaphore/semaphore/wiki/Installation) - [Troubleshooting](https://github.com/ansible-semaphore/semaphore/wiki/Troubleshooting) -- [Roadmap](https://github.com/ansible-semaphore/semaphore/issues/325) +- [Contribution Guide](https://github.com/ansible-semaphore/semaphore/blob/develop/CONTRIBUTING.md) +- [Roadmap](https://github.com/ansible-semaphore/semaphore/projects) - [UI Walkthrough](https://blog.strangeman.info/ansible/2017/08/05/semaphore-ui-guide.html) (external blog) ## Contributing diff --git a/Taskfile.yml b/Taskfile.yml index 88aad85b..21b992ad 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -36,15 +36,17 @@ tasks: deps:tools: desc: Installs tools needed dir: web + vars: + GORELEASER_VERSION: "0.62.5" cmds: - npm install -g nodemon - go get -u github.com/golang/dep/cmd/dep - go get github.com/cespare/reflex || true - go get -u github.com/gobuffalo/packr/... - go get -u github.com/haya14busa/goverage - # needs go 1.10+ - - go get github.com/goreleaser/goreleaser/... - + - '{{ if ne OS "windows" }} curl -L https://github.com/goreleaser/goreleaser/releases/download/v{{ .GORELEASER_VERSION }}/goreleaser_$(uname -s)_$(uname -m).tar.gz | tar -xz -C ${GOPATH}/bin{{ else }}ver>nul{{ end }}' + - '{{ if ne OS "windows" }} chmod +x ${GOPATH}/bin/goreleaser{{ else }}ver>nul{{ end }}' + - '{{ if eq OS "windows" }} echo "NOTICE: You must download goreleaser manually to build this application https://github.com/goreleaser/goreleaser/releases "{{ else }}:{{ end }}' compile: desc: Generates compiled frontend and backend resources (must be in this order) cmds: diff --git a/circle.yml b/circle.yml index 8031ed70..e92a048a 100644 --- a/circle.yml +++ b/circle.yml @@ -8,6 +8,7 @@ machine: dependencies: pre: - sudo apt-get install rpm + - mkdir -p ${GOPATH}/bin - rm -rf ${CPATH} && mkdir -p ${CPATH} - ln -sfn ${HOME}/${CIRCLE_PROJECT_REPONAME} ${CPATH} - sudo rm -rf /usr/local/go