Back to regular circle.yml, make and artifact linux binaries
Remove the circle-test.sh script because that environment was having problems building all of gopsutil.
This commit is contained in:
29
circle.yml
29
circle.yml
@@ -1,11 +1,22 @@
|
||||
machine:
|
||||
pre:
|
||||
- bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
|
||||
- source $HOME/.gvm/scripts/gvm; gvm install go1.4.2 --binary
|
||||
|
||||
dependencies:
|
||||
override:
|
||||
- echo "Dummy override, so no Circle dependencies execute"
|
||||
post:
|
||||
# install golint
|
||||
- go get github.com/golang/lint/golint
|
||||
# install gox
|
||||
- go get -u -f github.com/mitchellh/gox
|
||||
# install binaries
|
||||
- go install ./...
|
||||
|
||||
test:
|
||||
override:
|
||||
- bash circle-test.sh
|
||||
pre:
|
||||
# Go fmt should pass all files
|
||||
- "[ `git ls-files | grep '.go$' | xargs gofmt -l 2>&1 | wc -l` -eq 0 ]"
|
||||
- go vet ./...
|
||||
- golint .
|
||||
- golint testutil/...
|
||||
- golint cmd/...
|
||||
override:
|
||||
- make test-short
|
||||
post:
|
||||
- gox -os="linux" -arch="386 amd64" ./...
|
||||
- mv telegraf* $CIRCLE_ARTIFACTS
|
||||
|
||||
Reference in New Issue
Block a user