Skip to content

Commit

Permalink
Merge pull request #927 from Alignak-monitoring/develop
Browse files Browse the repository at this point in the history
Version 1.0.0
  • Loading branch information
ddurieux authored Sep 11, 2017
2 parents f50b7ff + f648a1d commit 73e109b
Show file tree
Hide file tree
Showing 1,952 changed files with 100,419 additions and 61,500 deletions.
1 change: 0 additions & 1 deletion .coveralls.yml

This file was deleted.

5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@ docs/tools/pages/


# test and coverage
test/tmp/.cov*
test/.coverage
test/.coverage.*

test/run/
test_run/run/

# Pbr
pbr-*.egg/
Expand Down
29 changes: 29 additions & 0 deletions .landscape.yml
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
36 changes: 23 additions & 13 deletions .pylintrc

Large diffs are not rendered by default.

58 changes: 36 additions & 22 deletions .travis.yml
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
9 changes: 9 additions & 0 deletions .travis/codingstandard.sh
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
14 changes: 14 additions & 0 deletions .travis/load.sh
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 ..
13 changes: 13 additions & 0 deletions .travis/report_coveralls.sh
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"
14 changes: 14 additions & 0 deletions .travis/run.sh
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 ..
17 changes: 17 additions & 0 deletions .travis/unit.sh
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 ..

5 changes: 5 additions & 0 deletions .travis/virtualenv.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

set -ev

./test/test_virtualenv_setup.sh
9 changes: 5 additions & 4 deletions AUTHORS
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.

7 changes: 7 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
Alignak ChangeLog
#################

1.0.0 (2017-09-12)
------------------

Too many modifications, so see the git log.
It's the very first STABLE RELEASE.


0.2 (2016-01-23)
----------------

Expand Down
File renamed without changes.
65 changes: 45 additions & 20 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,63 @@
Presentation of the Alignak project
===================================

Welcome to the Alignak project.
*Alignak project - modern Nagios compatible monitoring framework*

.. image:: https://api.travis-ci.org/Alignak-monitoring/alignak.svg?branch=develop
:target: https://travis-ci.org/Alignak-monitoring/alignak
:target: https://travis-ci.org/Alignak-monitoring/alignak
:alt: Develop branch build status

.. image:: https://landscape.io/github/Alignak-monitoring/alignak/develop/landscape.svg?style=flat
:target: https://landscape.io/github/Alignak-monitoring/alignak/develop
:alt: Development code static analysis

.. image:: https://coveralls.io/repos/Alignak-monitoring/alignak/badge.svg?branch=develop
:target: https://coveralls.io/r/Alignak-monitoring/alignak
.. image:: https://badges.gitter.im/Join%20Chat.svg
:alt: Join the chat at https://gitter.im/Alignak-monitoring/alignak
:target: https://gitter.im/Alignak-monitoring/alignak?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
:target: https://coveralls.io/r/Alignak-monitoring/alignak
:alt: Development code tests coverage

.. image:: https://readthedocs.org/projects/alignak-doc/badge/?version=latest
:target: http://alignak-doc.readthedocs.org/en/latest/?badge=latest
:alt: Lastest documentation Status

Alignak project is a monitoring framwork based on Shinken who tend to follow OpenStack standards and integrate with it.
Its main goal is to give users a flexible architecture for their monitoring system that is designed to scale to large environments.
.. image:: https://readthedocs.org/projects/alignak-doc/badge/?version=develop
:target: http://alignak-doc.readthedocs.org/en/update/?badge=develop
:alt: Development branch documentation Status

Alignak is backwards-compatible with the Nagios configuration standard
and plugins. It works on any operating system and architecture that
supports Python, which includes Windows, GNU/Linux and FreeBSD.
.. image:: https://img.shields.io/badge/IRC-%23alignak-1e72ff.svg?style=flat
:target: http://webchat.freenode.net/?channels=%23alignak
:alt: Join the chat #alignak on freenode.net

Alignak is licensed under the Gnu Affero General Public Licence version 3 (AGPLv3).
Unless specified by another header, this licence apply to all files in this repository
.. image:: https://img.shields.io/badge/License-AGPL%20v3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0
:alt: License AGPL v3

Requirements
============

See the requirement file in the repository's root
`Alignak <http://www.alignak.net>`_ is a modern monitoring framework based on Shinken.

Its main goal is to give users a flexible and complete solution for their monitoring system. Alignak is designed to scale to large environments.

Installing Alignak
==================
Alignak is backwards-compatible with the Nagios/Shinken configuration standard and plugins. It works on any operating system and architecture that supports Python, which includes Windows (not yet), GNU/Linux and FreeBSD.

Alignak is licensed under the Gnu Affero General Public Licence version 3 (AGPLv3). Unless specified by another header, this licence applies to all the files in this repository.


Documentation
-------------

See the `Documentation`_
`Alignak Web Site <http://www.alignak.net>`_ includes much documentation and introduces the Alignak main features, such as the backend, the webui, the tight integration with timeseries databases, ...

.. _Documentation: https://alignak-doc.readthedocs.org/en/latest/02_installation/index.html
Alignak project has `an online documentation page <http://alignak-monitoring.github.io/documentation/>`_. We try to have as much documentation as possible and to keep this documentation simple and understandable. For sure the documentation is not yet complete, but you can help us ;)

Click on one of the docs badges on this page to browse the documentation.


Requirements
------------

See the requirements file in the repository's root


Installing Alignak
------------------

See the `installation documentation <https://alignak-doc.readthedocs.org/en/latest/02_installation/index.html>`_.
Loading

0 comments on commit 73e109b

Please sign in to comment.