diff --git a/.ahoy.yml b/.ahoy.yml index 550b112..a0fe753 100644 --- a/.ahoy.yml +++ b/.ahoy.yml @@ -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. @@ -38,6 +52,7 @@ commands: fi godep: + usage: Go dependency manager (godep) cmd: | godep="$(which godep)" if [ ! "$godep" ]; then @@ -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 diff --git a/.gitignore b/.gitignore index 650003f..f1ea240 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ docs/_build # Ignore the ahoy binary when it's built ahoy .idea +builds/* diff --git a/builds/README.md b/builds/README.md new file mode 100644 index 0000000..f4e0693 --- /dev/null +++ b/builds/README.md @@ -0,0 +1 @@ +# This directory contains all of the builds for various architectures.