-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update gitignore Update module documentation and setup, set version to 0.2.0 Update module and add a unit test example Update readme for travis badge Update travis.yml for code coverage
- Loading branch information
Showing
31 changed files
with
2,030 additions
and
120 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
This file was deleted.
Oops, something went wrong.
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,35 @@ | ||
language: python | ||
sudo: true | ||
python: | ||
- "2.7" | ||
# - "3.4" | ||
|
||
# command to install dependencies | ||
# some are only used for travis/coveralls so we are installing them here only | ||
install: | ||
- ./test/setup_test.sh | ||
|
||
# command to run tests | ||
script: | ||
# so to help eventual debug: knowing what exact versions are in use can be rather useful. | ||
- pip freeze | ||
# Code static analysis | ||
# Not for the example module ! | ||
# - pep8 --max-line-length=100 --exclude='*.pyc, *.cfg, *.log' --ignore='E402' alignak_module_ws/* | ||
# - pylint --rcfile=.pylintrc alignak_module_ws/ | ||
# Code dynamic analysisk | ||
- cd test | ||
# notice: the nose-cov is used because it is compatible with --processes, but produce a .coverage by process | ||
# so we must combine them in the end | ||
- coverage erase | ||
- nosetests -xv --process-restartworker --processes=1 --process-timeout=300 --with-cover --cover-package=alignak_module_example test_module.py | ||
- coverage combine | ||
- cd .. | ||
# specific call to launch coverage data into coveralls.io | ||
after_success: | ||
# to get coverage data with relative paths and not absolute we have to | ||
# execute coveralls from the base directory of the project, | ||
# so we need to move the .coverage file here : | ||
# mv test/.coverage . && coveralls --rcfile=test/.coveragerc -v | ||
mv test/.coverage . && coveralls -v | ||
|
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,5 +1,6 @@ | ||
include version.py | ||
include README.rst | ||
include LICENSE | ||
include AUTHORS | ||
include requirements.txt | ||
recursive-include alignak_module_log * | ||
recursive-include alignak_module_example * |
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
14 changes: 0 additions & 14 deletions
14
alignak_module_example/ALIGNAKETC/arbiter/modules/mod-EXAMPLE.cfg
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
alignak_module_example/ALIGNAKETC/arbiter/modules/mod-example.cfg
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 @@ | ||
## Module: EXAMPLE | ||
## Loaded by: Broker | ||
# ..... | ||
define module { | ||
# Module alias to use as a module identifier | ||
module_alias example | ||
# List of module types (see readme.rst) | ||
module_types example | ||
# Python module name | ||
python_name alignak_module_example | ||
|
||
# Module configuration parameters | ||
# --- | ||
option_1 foo | ||
option_2 bar | ||
option_3 foobar | ||
} |
Oops, something went wrong.