language: python
sudo: true
python:
  - "3.5"
  - "3.6"

before_script:
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start"
  - sleep 3

install:
  - ./test/setup_test.sh

script:
  # so to help eventual debug: knowing what exact versions are in use can be rather useful.
  - pip freeze
  # Code static analysis
  - pycodestyle --max-line-length=100 --exclude='*.pyc, *.cfg, *.log' --ignore='E402' alignak_app/*
  - pylint --rcfile=.pylintrc alignak_app/
  # No pep257 currently (Code doc compliance)
  # - pep257 --select=D300 alignak_app
  # Code dynamic analysis
  - cd test/
  - coverage erase
  - pytest --cov=alignak_app --cov-config test/.coveragerc test/test_*.py
  # - ls -la $HOME/.local/alignak_app
  - coverage report -m
  - 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
  # - coveralls -v


language: python
sudo: true
python:
  - "3.5"
  - "3.6"

before_script:
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start"
  - sleep 3

install:
  - ./test/setup_test.sh

script:
  # so to help eventual debug: knowing what exact versions are in use can be rather useful.
  - pip freeze
  # Code static analysis
  - pycodestyle --max-line-length=100 --exclude='*.pyc, *.cfg, *.log' --ignore='E402' alignak_app/*
  - pylint --rcfile=.pylintrc alignak_app/
  # No pep257 currently (Code doc compliance)
  # - pep257 --select=D300 alignak_app
  # Code dynamic analysis
  - cd test/
  - coverage erase
  - pytest --cov=alignak_app --cov-config=.coveragerc test_*.py
  # - ls -la $HOME/.local/alignak_app
  - coverage report -m
  - 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
  # - coveralls -v


Fix wrong path for test files and config file
Fix wrong path for test files and config file

Ref #53
