sudo: required
dist: trusty
language: python
matrix:
    include:
        - python: 3.5
        - python: 3.5
          env: TEST_MODE=INTEGRATION_TESTS
        - python: 3.5
          env: TEST_MODE=PEP8
install:
    - pip install pytest pytest-xdist pep8 pytest-pep8 pytest-cov python-coveralls
    - pip install -r requirements.txt
    - wget https://github.com/karoldvl/ESC-50/archive/wav-files.zip && unzip -q wav-files.zip -d data/ && mv data/ESC-50-wav-files data/ESC-50 && rm -f wav-files.zip
    - mkdir data/.ESC-50.cache
script:
    - if [[ "$TEST_MODE" == "INTEGRATION_TESTS" ]]; then
          PYTHONPATH=$PWD:$PYTHONPATH py.test tests/integration_tests;
      elif [[ "$TEST_MODE" == "PEP8" ]]; then
          PYTHONPATH=$PWD:$PYTHONPATH py.test --pep8 -m pep8 -n0;
      else
          PYTHONPATH=$PWD:$PYTHONPATH py.test tests/ --ignore=tests/integration_tests;
      fi
after_success:
    - coveralls
sudo: false
language: python
matrix:
    include:
        - python: 3.5
        - python: 3.5
          env: TEST_MODE=INTEGRATION_TESTS
        - python: 3.5
          env: TEST_MODE=PEP8
install:
    - pip install pytest pytest-xdist pep8 pytest-pep8 pytest-cov python-coveralls
    - pip install -r requirements.txt
    - wget https://github.com/karoldvl/ESC-50/archive/wav-files.zip && unzip -q wav-files.zip -d data/ && mv data/ESC-50-wav-files data/ESC-50 && rm -f wav-files.zip
    - mkdir data/.ESC-50.cache
script:
    - if [[ "$TEST_MODE" == "INTEGRATION_TESTS" ]]; then
          PYTHONPATH=$PWD:$PYTHONPATH py.test tests/integration_tests;
      elif [[ "$TEST_MODE" == "PEP8" ]]; then
          PYTHONPATH=$PWD:$PYTHONPATH py.test --pep8 -m pep8 -n0;
      else
          PYTHONPATH=$PWD:$PYTHONPATH py.test tests/ --ignore=tests/integration_tests;
      fi
after_success:
    - coveralls
Switch to Travis container infrastructure
Switch to Travis container infrastructure
