skip goreleaser install on windows and warn

This commit is contained in:
tom whiston 2018-03-20 22:40:54 +00:00
parent 8f4d20fd81
commit 350982258e
4 changed files with 10 additions and 4 deletions

View File

@ -38,6 +38,8 @@ go get ./...
go get -u github.com/go-task/task/cmd/task go get -u github.com/go-task/task/cmd/task
task deps 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 4) Set up config, database & run migrations

View File

@ -8,7 +8,8 @@
- [Releases](https://github.com/ansible-semaphore/semaphore/releases) - [Releases](https://github.com/ansible-semaphore/semaphore/releases)
- [Install Instructions](https://github.com/ansible-semaphore/semaphore/wiki/Installation) - [Install Instructions](https://github.com/ansible-semaphore/semaphore/wiki/Installation)
- [Troubleshooting](https://github.com/ansible-semaphore/semaphore/wiki/Troubleshooting) - [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) - [UI Walkthrough](https://blog.strangeman.info/ansible/2017/08/05/semaphore-ui-guide.html) (external blog)
## Contributing ## Contributing

View File

@ -36,15 +36,17 @@ tasks:
deps:tools: deps:tools:
desc: Installs tools needed desc: Installs tools needed
dir: web dir: web
vars:
GORELEASER_VERSION: "0.62.5"
cmds: cmds:
- npm install -g nodemon - npm install -g nodemon
- go get -u github.com/golang/dep/cmd/dep - go get -u github.com/golang/dep/cmd/dep
- go get github.com/cespare/reflex || true - go get github.com/cespare/reflex || true
- go get -u github.com/gobuffalo/packr/... - go get -u github.com/gobuffalo/packr/...
- go get -u github.com/haya14busa/goverage - go get -u github.com/haya14busa/goverage
# needs go 1.10+ - '{{ 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 }}'
- go get github.com/goreleaser/goreleaser/... - '{{ 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: compile:
desc: Generates compiled frontend and backend resources (must be in this order) desc: Generates compiled frontend and backend resources (must be in this order)
cmds: cmds:

View File

@ -8,6 +8,7 @@ machine:
dependencies: dependencies:
pre: pre:
- sudo apt-get install rpm - sudo apt-get install rpm
- mkdir -p ${GOPATH}/bin
- rm -rf ${CPATH} && mkdir -p ${CPATH} - rm -rf ${CPATH} && mkdir -p ${CPATH}
- ln -sfn ${HOME}/${CIRCLE_PROJECT_REPONAME} ${CPATH} - ln -sfn ${HOME}/${CIRCLE_PROJECT_REPONAME} ${CPATH}
- sudo rm -rf /usr/local/go - sudo rm -rf /usr/local/go