group: travis_latest language: python cache: pip python: - 2.7 env: - TEST_PATH=tests/data services: - docker # - 3.6 #matrix: # allow_failures: # - python: 3.6 - Commenting out testing for Python 3.6 until ready before_install: - mkdir -p ./data/esdata1 - mkdir -p ./data/es_snapshots - sudo chown -R 1000:1000 ./data/es* - docker build -t vulnwhisperer-local . - docker-compose -f docker-compose-test.yml up -d install: - pip install -r requirements.txt - pip install flake8 # pytest # add another testing frameworks later - python setup.py install before_script: # stop the build if there are Python syntax errors or undefined names - flake8 . --count --exclude=deps/qualysapi --select=E901,E999,F821,F822,F823 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --exclude=deps/qualysapi --max-complexity=10 --max-line-length=127 --statistics script: - bash tests/test-vuln_whisperer.sh - bash tests/test-docker.sh notifications: on_success: change on_failure: change # `always` will be the setting once code changes slow down