This repository has been archived by the owner on Nov 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from nanliu/pluginsync
Update from Intelsdi-x pluginsync 0.1.6
- Loading branch information
Showing
17 changed files
with
591 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<!-- | ||
Thanks for filing an issue! Before hitting the button, give this a read. | ||
If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead. | ||
If you suspect your issue is a bug, please add as much context as you can using the template below. If it is not a bug, remove any sections you don't need and explain how we can help. | ||
As a basic rule, if you cannot provide enough information to continue addressing the issue within 7 days, a maintainer will close it. We will, however, reopen it if you later provide the information. Thanks again. | ||
--> | ||
|
||
**Snap version** (use `snapctl -v`): | ||
|
||
**Environment**: | ||
- **Cloud provider or hardware configuration**: | ||
- **OS** (e.g. from /etc/os-release): | ||
- **Kernel** (e.g. `uname -a`): | ||
- **Relevant tools** (e.g. plugins used with Snap): | ||
- **Others** (e.g. deploying with Ansible): | ||
|
||
|
||
**What happened**: | ||
|
||
|
||
**What you expected to happen**: | ||
|
||
|
||
**Steps to reproduce it** (as minimally and precisely as possible): | ||
|
||
1. | ||
2. | ||
3. | ||
|
||
|
||
**Anything else do we need to know** (e.g. issue happens only occasionally): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!-- | ||
If this is a bug fix, make sure your description includes "fixes #xxxx", or | ||
"closes #xxxx" | ||
Please provide the following information: | ||
--> | ||
Fixes # | ||
|
||
Summary of changes: | ||
- | ||
- | ||
- | ||
|
||
How to verify it: | ||
- | ||
|
||
Testing done: | ||
- | ||
|
||
A picture of a snapping turtle (not required but encouraged): | ||
- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
pluginsync_config: '0.1.6' | ||
managed_files: | ||
- .github | ||
- .github/ISSUE_TEMPLATE.md | ||
- .github/PULL_REQUEST_TEMPLATE.md | ||
- .gitignore | ||
- .pluginsync.yml | ||
- .travis.yml | ||
- CONTRIBUTING.md | ||
- LICENSE | ||
- Makefile | ||
- scripts | ||
- scripts/build.sh | ||
- scripts/common.sh | ||
- scripts/deps.sh | ||
- scripts/pre_deploy.sh | ||
- scripts/test.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.travis.yml: | ||
env: | ||
global: | ||
- ORG_PATH=/home/travis/gopath/src/github.com/intelsdi-x | ||
- SNAP_PLUGIN_SOURCE=/home/travis/gopath/src/github.com/${TRAVIS_REPO_SLUG} | ||
matrix: | ||
- TEST_TYPE=small | ||
- TEST_TYPE=medium | ||
deploy: | ||
access_key_id: AKIAINMB43VSSPFZISAA | ||
secret_access_key: | ||
secure: M2MPahJfZeE1dAJcAB1mshyizhm3yJVa//4YwJz4aqNIIpT3hFyIVoIW1Ud2zXah3G5eARv8vq3WYxc//nLrQy1Baii532JkRRBkehoqhoj1+94lH/qy3qeOU1itsPYgmx8rwPLfjorIB/TdJnWJaJhEZxmuhyX0tVwM1N23WXlaDAZkYV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6MkqxhQuu+ae7UQbAWtJxkPGWkaz3mYVEUUuu7Jne3wCs1lXbU0ORPuqSDhZckOuBpF4yd7WnBliqIrQ1TNc5K9eO3nLdWcF0gMLopOLDHw8MrI1EPGzlpIlx9Aink= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,70 @@ | ||
sudo: required | ||
services: | ||
- docker | ||
# File managed by pluginsync | ||
sudo: false | ||
language: go | ||
go: | ||
- 1.5.3 | ||
- 1.6 | ||
before_install: | ||
- go get github.com/tools/godep | ||
- if [ ! -d $SNAP_PLUGIN_SOURCE ]; then mkdir -p $HOME/gopath/src/github.com/intelsdi-x; ln -s $TRAVIS_BUILD_DIR $SNAP_PLUGIN_SOURCE; fi # CI for forks not from intelsdi-x | ||
- 1.6.3 | ||
- 1.7.1 | ||
env: | ||
global: | ||
- SNAP_PLUGIN_SOURCE=/home/travis/gopath/src/github.com/intelsdi-x/snap-plugin-publisher-kafka | ||
- ORG_PATH=/home/travis/gopath/src/github.com/intelsdi-x | ||
- SNAP_PLUGIN_SOURCE=/home/travis/gopath/src/github.com/${TRAVIS_REPO_SLUG} | ||
matrix: | ||
- TEST=unit | ||
- TEST=integration | ||
- TEST=integration | ||
- TEST_TYPE=small | ||
- TEST_TYPE=medium | ||
- TEST_TYPE=build | ||
matrix: | ||
exclude: | ||
- go: 1.6.3 | ||
env: TEST_TYPE=build | ||
before_install: | ||
- "[[ -d $SNAP_PLUGIN_SOURCE ]] || mkdir -p $ORG_PATH && ln -s $TRAVIS_BUILD_DIR $SNAP_PLUGIN_SOURCE" | ||
install: | ||
- export TMPDIR=$HOME/tmp | ||
- mkdir -p $TMPDIR | ||
- cd $SNAP_PLUGIN_SOURCE # change dir into source | ||
- cd $SNAP_PLUGIN_SOURCE | ||
- make deps | ||
script: | ||
- make check TEST=$TEST 2>&1 # Run test suite | ||
- make check 2>&1 | ||
notifications: | ||
email: false | ||
slack: | ||
secure: VkbZLIc2RH8yf3PtIAxUNPdAu3rQQ7yQx0GcK124JhbEnZGaHyK615V0rbG7HcVmYKGPdB0cXqZiLBDKGqGKb2zR1NepOe1nF03jxGSpPq8jIFeEXSJGEYGL34ScDzZZGuG6qwbjFcXiW5lqn6t8igzp7v2+URYBaZo5ktCS2xY= | ||
before_deploy: | ||
- "./scripts/pre_deploy.sh" | ||
deploy: | ||
- provider: s3 | ||
access_key_id: AKIAINMB43VSSPFZISAA | ||
secret_access_key: | ||
secure: M2MPahJfZeE1dAJcAB1mshyizhm3yJVa//4YwJz4aqNIIpT3hFyIVoIW1Ud2zXah3G5eARv8vq3WYxc//nLrQy1Baii532JkRRBkehoqhoj1+94lH/qy3qeOU1itsPYgmx8rwPLfjorIB/TdJnWJaJhEZxmuhyX0tVwM1N23WXlaDAZkYVEvT2dOhpBiQJRmbPzO9LBXd2KewRrs+NQNP1TEQjISqKHtA6wPlHRNkMe7BPrTzBJ8uciaiXsf0T+RdIsqX6W+h+nBUPv0S/V3VYR/TXvKSzkWcUf30lwLYT439/hFoRiNhMLcDDwl4bxHrU1RrlSS8JF1+2SuXltx1l7HU9wUk+meKEciHiHDBPTu1Ouy/9HfbAzyVZ5UXM/aeEB3j3lfjQezG2JzVvHap4wjtvMmifhYKPkHpB4C+nlMyvPwtncg11/9KNdABB5g/xvvh66YeD7RdW9KyOaaaipBC489Y72o1UZUZo7NYPRIhnJFJSxQoN1n9yYn6st9dfczhWmdnPFYac+iMUTkD7XezRH4D7aEMGMrvfdsGUB0WW8iaUn3csk0TDqnnzy75Uqj0Ddpthu6J60g+6AI0SMkK0b7XlsTALRq3eGO9SGHq23o57M0YzSMWgyjOgLeUhngUpfgDJM76jtmPJckAjFl7UJsGeFS91w0E1+fu0Y= | ||
bucket: snap.ci.snap-telemetry.io | ||
region: us-west-2 | ||
skip_cleanup: true | ||
local-dir: s3 | ||
upload-dir: plugins | ||
acl: public_read | ||
on: | ||
repo: intelsdi-x/snap-plugin-publisher-kafka | ||
branch: master | ||
condition: $TEST_TYPE = "build" && $TRAVIS_GO_VERSION = "1.7.1" | ||
- provider: s3 | ||
access_key_id: AKIAINMB43VSSPFZISAA | ||
secret_access_key: | ||
secure: M2MPahJfZeE1dAJcAB1mshyizhm3yJVa//4YwJz4aqNIIpT3hFyIVoIW1Ud2zXah3G5eARv8vq3WYxc//nLrQy1Baii532JkRRBkehoqhoj1+94lH/qy3qeOU1itsPYgmx8rwPLfjorIB/TdJnWJaJhEZxmuhyX0tVwM1N23WXlaDAZkYVEvT2dOhpBiQJRmbPzO9LBXd2KewRrs+NQNP1TEQjISqKHtA6wPlHRNkMe7BPrTzBJ8uciaiXsf0T+RdIsqX6W+h+nBUPv0S/V3VYR/TXvKSzkWcUf30lwLYT439/hFoRiNhMLcDDwl4bxHrU1RrlSS8JF1+2SuXltx1l7HU9wUk+meKEciHiHDBPTu1Ouy/9HfbAzyVZ5UXM/aeEB3j3lfjQezG2JzVvHap4wjtvMmifhYKPkHpB4C+nlMyvPwtncg11/9KNdABB5g/xvvh66YeD7RdW9KyOaaaipBC489Y72o1UZUZo7NYPRIhnJFJSxQoN1n9yYn6st9dfczhWmdnPFYac+iMUTkD7XezRH4D7aEMGMrvfdsGUB0WW8iaUn3csk0TDqnnzy75Uqj0Ddpthu6J60g+6AI0SMkK0b7XlsTALRq3eGO9SGHq23o57M0YzSMWgyjOgLeUhngUpfgDJM76jtmPJckAjFl7UJsGeFS91w0E1+fu0Y= | ||
bucket: snap.ci.snap-telemetry.io | ||
region: us-west-2 | ||
skip_cleanup: true | ||
local-dir: s3 | ||
upload-dir: plugins | ||
acl: public_read | ||
on: | ||
repo: intelsdi-x/snap-plugin-publisher-kafka | ||
tags: true | ||
condition: $TEST_TYPE = "build" && $TRAVIS_GO_VERSION = "1.7.1" | ||
- provider: releases | ||
api_key: | ||
secure: xBP1/9GdLtYHGUKXk/ac7t+NNodLo16fucPfqLoxC23Rw3a84vMluVZheWplSVbiTmuOVn777EfoK2ej0nTGL7+iNLc/z84pqDM5kW6Bo/EO5J9r54DpMcEznbkxsNyXtNdeX5EO7Ufs35+eU2cuvZ8YeIs3NNna6EBcB/JD7DlVKcLq4oKeMLafEs2vDSaFRDrgirtQhIU8525LCVSNwK3MiBPZnRMcTj6i0GLtz5BnVOBwgIElYhDawkIBnYmVxoBSMD7OyOfDt5zAq/1WJuoFj9zxjcTvCSKkgyno0ziDy3HrhV07QOy9gZ8nPUXPRI1u1cz0J3WLErvj0hmoBsOYbFGB6PpYwyjPZb0Pa8KrNqHYrVdgEu9VP6Y6y+YwzHOLqn8rFSaTCwlWlDN4Z9iso3jrbDfVdSKDb/GGF7MhWG981eresWB0jYpx3kJJ5mQtFTa0uD+udyYDyrvp5EP1MNxMCAkcg7s23E/517hcctFKCRRc5qt7ulDOD8djhYCQDTZlBkv5K6sWhILcyXMFsbKVLRc6pRYbdBN8P3BJ+6MkqxhQuu+ae7UQbAWtJxkPGWkaz3mYVEUUuu7Jne3wCs1lXbU0ORPuqSDhZckOuBpF4yd7WnBliqIrQ1TNc5K9eO3nLdWcF0gMLopOLDHw8MrI1EPGzlpIlx9Aink= | ||
file: | ||
- release/snap-plugin-publisher-kafka_linux_x86_64 | ||
skip_cleanup: true | ||
on: | ||
repo: intelsdi-x/snap-plugin-publisher-kafka | ||
tags: true | ||
condition: $TEST_TYPE = "build" && $TRAVIS_GO_VERSION = "1.7.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// +build integration | ||
// +build medium | ||
|
||
/* | ||
http://www.apache.org/licenses/LICENSE-2.0.txt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// +build unit | ||
// +build small | ||
|
||
/* | ||
http://www.apache.org/licenses/LICENSE-2.0.txt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// +build unit | ||
// +build small | ||
|
||
/* | ||
http://www.apache.org/licenses/LICENSE-2.0.txt | ||
|
Oops, something went wrong.