Razique Mahroua
2020-03-18 b85c91a8192593f6b62f93e11c971868964343a9
.travis.yml
@@ -1,12 +1,37 @@
---
sudo: false
cache:
  - pip
before_cache:
  - rm ~/.cache/pip/log/debug.log
language: python
python:
  - "2.7"
  - "3.6"
# command to install dependencies
  - "3.5"
install:
  - pip install yamllint ansible
# command to run tests
  - pip install --upgrade pip
  - pip install tox-travis coveralls
script:
  #- yamllint -c .yamllint $(git ls-files '*.yaml' '*.yml')
  - ./tests/syntax-check.sh
  - tox -c tests/static
after_failure:
  - echo "Here's a list of installed Python packages:"
  - pip list --format=columns
  - echo Dumping logs, because tests failed to succeed
  - |
      for log in `ls .tox/*/log/*.log`
      do
        echo Outputting $log
        cat $log
      done
  - pip_debug_log=/home/travis/.cache/pip/log/debug.log
  - echo Outputting pip debug log from $pip_debug_log
  - cat $pip_debug_log
#after_success:
  #- coveralls