-
Notifications
You must be signed in to change notification settings - Fork 19
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 #927 from Alignak-monitoring/develop
Version 1.0.0
- Loading branch information
Showing
1,952 changed files
with
100,419 additions
and
61,500 deletions.
There are no files selected for viewing
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
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,29 @@ | ||
doc-warnings: true | ||
test-warnings: false | ||
strictness: medium | ||
max-line-length: 100 | ||
autodetect: true | ||
pep8: | ||
full: true | ||
pep257: | ||
run: false | ||
mccabe: | ||
run: false | ||
requirements: | ||
- requirements.txt | ||
python-targets: | ||
- 2 | ||
ignore-paths: | ||
- bin | ||
- contrib | ||
- dev | ||
- doc | ||
- etc | ||
- test | ||
ignore-patterns: | ||
# This file is only defining the imported Alignak version | ||
- alignak/__init__.py | ||
# This file is necessary because imported by daemons but it does not use imported packages... | ||
- alignak/objects/__init__.py | ||
# This file is for setup only and not yet pep8/pylint compliant | ||
- install_hooks.py |
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,39 +1,53 @@ | ||
language: python | ||
sudo: true | ||
dist: trusty | ||
sudo: required | ||
python: | ||
- "2.6" | ||
- "2.7" | ||
|
||
# command to install dependencies | ||
# some are only used for travis/coveralls so we are installing them here only | ||
|
||
env: | ||
- TEST_SUITE=unit | ||
# Alignak daemons run tests | ||
- TEST_SUITE=run | ||
- TEST_SUITE=load | ||
- TEST_SUITE=codingstandard | ||
- TEST_SUITE=virtualenv | ||
|
||
matrix: | ||
exclude: | ||
- python: "2.6" | ||
env: TEST_SUITE=load | ||
- python: "2.6" | ||
env: TEST_SUITE=codingstandard | ||
- python: "2.6" | ||
env: TEST_SUITE=virtualenv | ||
|
||
install: | ||
# Remove python warnings | ||
- unset PYTHONWARNINGS | ||
# command to install dependencies | ||
# some are only used for travis/coveralls so we are installing them here only | ||
- ./test/setup_test.sh | ||
# some are specific for daemons run tests | ||
- ./test_run/setup_test.sh | ||
|
||
# command to run tests | ||
# 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 | ||
script: | ||
- cd test | ||
- pip freeze # so to help eventual debug: know what exact versions are in use can be rather useful. | ||
- nosetests -xv --process-restartworker --processes=1 --process-timeout=300 --with-coverage --cover-package=alignak | ||
- coverage combine | ||
- cd .. && pep8 --max-line-length=100 --exclude='*.pyc' alignak/* | ||
- unset PYTHONWARNINGS | ||
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then pylint --rcfile=.pylintrc --disable=all --enable=C0111 --enable=W0403 --enable=W0106 --enable=W1401 --enable=W0614 --enable=W0107 --enable=C0204 --enable=W0109 --enable=W0223 --enable=W0311 --enable=W0404 --enable=W0623 --enable=W0633 --enable=W0640 --enable=W0105 --enable=W0141 --enable=C0325 --enable=W1201 --enable=W0231 --enable=W0611 --enable=C0326 --enable=W0122 --enable=E0102 --enable=W0401 --enable=W0622 --enable=C0103 --enable=E1101 -r no alignak/*; fi | ||
- export PYTHONWARNINGS=all | ||
- pep257 --select=D300 alignak | ||
- cd test && (pkill -6 -f "alignak_-" || :) && python full_tst.py && cd .. | ||
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then ./test/test_all_setup.sh; fi | ||
# so to help eventual debug: know what exact versions are in use can be rather useful. | ||
- pip freeze | ||
# run test suite (wait no more than 30 minutes) | ||
- travis_wait 60 ./.travis/$TEST_SUITE.sh | ||
|
||
# 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 | ||
- echo "Test Success - Branch($TRAVIS_BRANCH) Pull Request($TRAVIS_PULL_REQUEST) Tag($TRAVIS_TAG)" | ||
# Send coverage report only for the Python 2.7 unit tests | ||
- if [[ $TEST_SUITE == 'unit' && $TRAVIS_PYTHON_VERSION == '2.7' ]]; then ./.travis/report_coveralls.sh; fi | ||
|
||
notifications: | ||
webhooks: | ||
urls: | ||
- https://webhooks.gitter.im/e/b40202d91150d5c75582 | ||
on_success: change # options: [always|never|change] default: always | ||
on_failure: always # options: [always|never|change] default: always | ||
on_start: false # default: false | ||
on_start: never # default: false |
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,9 @@ | ||
#!/bin/sh | ||
|
||
set -ev | ||
|
||
pep8 --max-line-length=100 --exclude='*.pyc' alignak/* | ||
unset PYTHONWARNINGS | ||
pylint --rcfile=.pylintrc -r no alignak | ||
export PYTHONWARNINGS=all | ||
pep257 --select=D300 alignak |
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 @@ | ||
#!/bin/sh | ||
|
||
set -ev | ||
|
||
cd test_load | ||
# Delete previously existing coverage results | ||
coverage erase | ||
|
||
# Run test suite with py.test running its coverage plugin | ||
pytest -v --cov=alignak --cov-config .coveragerc test_*.py | ||
|
||
# Report about coverage | ||
coverage report -m | ||
cd .. |
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,13 @@ | ||
#!/bin/sh | ||
|
||
set -ev | ||
|
||
# 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 . | ||
# In cas of any broken coverage report, one can use the debug mode | ||
# coveralls debug | ||
echo "Submitting coverage results to coveralls.io..." | ||
coveralls -v --rcfile=test/.coveragerc | ||
echo "Submitted" |
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 @@ | ||
#!/bin/sh | ||
|
||
set -ev | ||
|
||
cd test_run | ||
# Delete previously existing coverage results | ||
coverage erase | ||
|
||
# Run test suite with py.test running its coverage plugin | ||
pytest -v --cov=alignak --cov-config .coveragerc test_*.py | ||
|
||
# Report about coverage | ||
coverage report -m | ||
cd .. |
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 @@ | ||
#!/bin/sh | ||
|
||
set -ev | ||
|
||
cd test | ||
# Delete previously existing coverage results | ||
coverage erase | ||
|
||
# Run test suite with py.test running its coverage plugin | ||
# Verbose mode to have the test list | ||
# Dump the 10 slowest tests | ||
pytest -v --durations=10 --cov=alignak --cov-report term-missing --cov-config .coveragerc test_*.py | ||
|
||
# Report about coverage | ||
coverage report -m | ||
cd .. | ||
|
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,5 @@ | ||
#!/bin/sh | ||
|
||
set -ev | ||
|
||
./test/test_virtualenv_setup.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 |
---|---|---|
@@ -1,10 +1,11 @@ | ||
Main developpers: | ||
|
||
David Durieux <d.durieux@siprossii.com> | ||
|
||
|
||
David Durieux <david.durieux@alignak.net> | ||
Frederic Mohier <[email protected]> | ||
Sebastien Coavoux <[email protected]> | ||
|
||
Contributors: | ||
|
||
|
||
Many people contributed to this project forked from Shinken. | ||
See the copyright section in the header of each source code file for the contributions. | ||
|
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
File renamed without changes.
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
Oops, something went wrong.