gobuild-old / gobuild3

golang online build 3rd version
http://gobuild.io
MIT License
77 stars 6 forks source link

Project reopen on 2015-12-13. Beta version released

http://gobuild.io

Description

This repo is for the website gobuild.io, which offers a service that can easily build golang source code.

Commit your repo address to gobuild.io and it will cross-compile for you and generate a download link.

Currently the site supports the following features:

.gobuild.yml format

author: codeskyblue@gmail.com
description: >
        Hmm. this is a test.
        hahaha

filesets:
    includes:
        - conf
        - README.md
        - LICENSE
    excludes:
        - \.git
    depth: 3
settings:
        targetdir: ""
        build: |
            test -d Godeps && go(){ godep go "$@";} ; go install -v
        outfiles:
            - packer

This is a full version of .gobuild.yml. This file should be committed to your repo with a directory containing go source code.

Only filesets.excludes uses regex to filter files. Note that filesets.includes does not use regex. (If you have any idea how includes could support regex, pull requests are welcome.)

Use packer to check if .gobuild.yml is right.

go get github.com/gobuild/gobuild3/packer

packer --init can also generate a sample .gobuild.yml

settings.targetdir will set the env GOBIN, which will make sure go install installs to the right directory.

Default values:

alias is not supported for bash -c -- I really don't know why.

LICENSE

This repo is covered by the MIT LICENSE