Skip to content

Commit

Permalink
Merge pull request #505 from twhiston/goreleaser_fix
Browse files Browse the repository at this point in the history
skip goreleaser install on windows and warn
  • Loading branch information
twhiston committed Mar 26, 2018
2 parents 8f4d20f + 3509822 commit 8bb45c2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 5 additions & 3 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8bb45c2

Please sign in to comment.