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
  - pep8 --max-line-length=100 --exclude='*.pyc, *.cfg, *.log' --ignore='E402' alignak_module_ws/*
  - pylint --rcfile=.pylintrc alignak_module_ws/
  # Code dynamic analysis
  - 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
  - coverage run --source=alignak_module_ws -m nose -c .noserc
#  - nosetests -xv --process-restartworker --processes=1 --process-timeout=300 --with-coverage --cover-package=alignak_module_ws
#  - 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


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
  - pep8 --max-line-length=100 --exclude='*.pyc, *.cfg, *.log' --ignore='E402' alignak_module_ws/*
  - pylint --rcfile=.pylintrc alignak_module_ws/
  # Code dynamic analysis
  - 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
  - coverage run --source=alignak_module_ws -m nose -c .noserc
#  - nosetests -xv --process-restartworker --processes=1 --process-timeout=300 --with-coverage --cover-package=alignak_module_ws
#  - 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


Make a test for coverage tests
Make a test for coverage tests
