wlf f051014ac2 提交正常运行的所有代码 11 months ago
..
.circleci f051014ac2 提交正常运行的所有代码 11 months ago
bazel-rules f051014ac2 提交正常运行的所有代码 11 months ago
config_management f051014ac2 提交正常运行的所有代码 11 months ago
cover f051014ac2 提交正常运行的所有代码 11 months ago
dependencies f051014ac2 提交正常运行的所有代码 11 months ago
integration f051014ac2 提交正常运行的所有代码 11 months ago
provisioning f051014ac2 提交正常运行的所有代码 11 months ago
runner f051014ac2 提交正常运行的所有代码 11 months ago
scheduler f051014ac2 提交正常运行的所有代码 11 months ago
socks f051014ac2 提交正常运行的所有代码 11 months ago
COPYING.LGPL-3 f051014ac2 提交正常运行的所有代码 11 months ago
LICENSE f051014ac2 提交正常运行的所有代码 11 months ago
README.md f051014ac2 提交正常运行的所有代码 11 months ago
files-with-type f051014ac2 提交正常运行的所有代码 11 months ago
image-tag f051014ac2 提交正常运行的所有代码 11 months ago
lint f051014ac2 提交正常运行的所有代码 11 months ago
publish-site f051014ac2 提交正常运行的所有代码 11 months ago
push-images f051014ac2 提交正常运行的所有代码 11 months ago
rebuild-image f051014ac2 提交正常运行的所有代码 11 months ago
sched f051014ac2 提交正常运行的所有代码 11 months ago
shell-lint f051014ac2 提交正常运行的所有代码 11 months ago
test f051014ac2 提交正常运行的所有代码 11 months ago

README.md

Weaveworks Build Tools

Included in this repo are tools shared by weave.git and scope.git. They include

  • - ```build```: a set of docker base-images for building weave
    projects. These should be used instead of giving each project its
    own build image.
    - ```provisioning```: a set of Terraform scripts to provision virtual machines in GCP, AWS or Digital Ocean.
    - ```config_management```: a set of Ansible playbooks to configure virtual machines for development, testing, etc.
    - ```cover```: a tool which merges overlapping coverage reports generated by go
    test
    - ```files-with-type```: a tool to search directories for files of a given
    MIME type
    - ```lint```: a script to lint go, sh and hcl files; runs various tools like
    golint, go vet, errcheck, shellcheck etc
    - ```rebuild-image```: a script to rebuild docker images when their input files
    change; useful when you using docker images to build your software, but you
    don't want to build the image every time.
    - ```shell-lint```: a script to lint multiple shell files with 
    [shellcheck](http://www.shellcheck.net/)
    - ```socks```: a simple, dockerised SOCKS proxy for getting your laptop onto
    the Weave network
    - ```test```: a script to run all go unit tests in subdirectories, gather the
    coverage results, and merge them into a single report.
    - ```runner```: a tool for running tests in parallel; given each test is
    suffixed with the number of hosts it requires, and the hosts available are
    contained in the environment variable HOSTS, the tool will run tests in
    parallel, on different hosts.
    - ```scheduler```: an appengine application that can be used to distribute
    tests across different shards in CircleCI.
    
    ## Requirements
    
    - ```lint``` requires shfmt to lint sh files; get shfmt with
    

curl -fsSLo shfmt https://github.com/mvdan/sh/releases/download/v1.3.0/shfmt_v1.3.0_linux_amd64 chmod +x shfmt

  (we pin that version, and it doesn't build from the source repo any more)

## Using build-tools.git

To allow you to tie your code to a specific version of build-tools.git, such
that future changes don't break you, we recommendation that you [`git subtree`]()
this repository into your own repository:



git subtree add --prefix tools https://github.com/weaveworks/build-tools.git master --squash ````

To update the code in build-tools.git, the process is therefore:

  • PR into build-tools.git, go through normal review process etc.
  • Do git subtree pull --prefix tools https://github.com/weaveworks/build-tools.git master --squash in your repo, and PR that.

Getting Help

If you have any questions about, feedback for or problems with build-tools:

Your feedback is always welcome!