Skip to content

Commit

Permalink
Merge pull request #57 from ahoy-cli/dev-build-all
Browse files Browse the repository at this point in the history
Dev build all
  • Loading branch information
Frank Carey authored Jan 31, 2017
2 parents 78666d0 + 01dfb47 commit e40ece5
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .ahoy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@ commands:
build:
usage: Build ahoy with a version automatically set.
cmd: bash build.sh "$@"
build-all:
usage: Build all of the architecture and OSes that we support.
cmd: |
os_list=(darwin linux windows)
arch=amd64
for os in "${os_list[@]}"; do
echo "Building ahoy-bin-$os-$arch .."
env GOOS="$os" GOARCH="$arch" ahoy build -- -o "builds/ahoy-bin-$os-$arch"
if [ $? -ne 0 ]; then
"[Error]"
exit 1
fi
done
install:
cmd: "go install"
usage: Build ahoy using go install.
Expand Down Expand Up @@ -38,6 +52,7 @@ commands:
fi
godep:
usage: Go dependency manager (godep)
cmd: |
godep="$(which godep)"
if [ ! "$godep" ]; then
Expand All @@ -50,9 +65,9 @@ commands:
gofmt:
usage: Clean up go code per code standards.
cmd: gofmt -w *.go
build-docs:
docs-build:
usage: Build the docs.
cmd: cd docs && make html
deps:
docs-deps:
usage: Install the dependencies from requirements.txt
cmd: cd docs && pip install -r requirements.txt
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ docs/_build
# Ignore the ahoy binary when it's built
ahoy
.idea
builds/*
1 change: 1 addition & 0 deletions builds/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# This directory contains all of the builds for various architectures.

0 comments on commit e40ece5

Please sign in to comment.