Add a simple integration test at the end of circle-test.sh similar to homebrew test

This commit is contained in:
Cameron Sparr 2015-08-20 09:55:19 -06:00
parent 9bc39987f1
commit ecfdafab06
1 changed files with 7 additions and 0 deletions

View File

@ -64,6 +64,13 @@ exit_if_fail godep go test -v -short ./...
build "linux" "amd64" `git describe --always --tags` build "linux" "amd64" `git describe --always --tags`
build "linux" "386" `git describe --always --tags` build "linux" "386" `git describe --always --tags`
build "linux" "arm" `git describe --always --tags` build "linux" "arm" `git describe --always --tags`
# simple integration test
tmpdir=$(mktemp -d)
./telegraf-linux-amd64 -sample-config > $tmpdir/config.toml
exit_if_fail ./telegraf-linux-amd64 -config $tmpdir/config.toml \
-test -filter cpu:mem
# Artifact binaries # Artifact binaries
mv telegraf* $CIRCLE_ARTIFACTS mv telegraf* $CIRCLE_ARTIFACTS