kelceydamage/raspi-rtl

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: python
python:
  - "3.6"
install:
  - pip install -r requirements.txt
  - ./BUILD.sh
  - pip install -U .
  - pip install -U git+https://github.com/kelceydamage/raspi-tasks.git@master
  - echo $(pwd)
before_script:
  - python3 /home/travis/build/kelceydamage/raspi-rtl/dummy.py
  - export PYTHONPATH=$PYTHONPATH:$(pwd):/home/travis/.local/lib/python2.7/site-packages/
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
  - chmod +x ./cc-test-reporter
  - ./cc-test-reporter before-build
  - ls -l
  - mkdir -p /home/travis/var/run
  - cd /home/travis
script:
  - raspi-rtl start
  - sleep 5s
  - ls -l
  - python3 /home/travis/build/kelceydamage/raspi-rtl/platform_test.py
  - sleep 5s
  - raspi-rtl stop
  - cd /home/travis/build/kelceydamage/raspi-rtl
  - pytest -v --cov=rtl --cov-report=term-missing
after_script:
  - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
env:
  global:
    - GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi)
    - CC_TEST_REPORTER_ID=0068c0dc7cd34c0a4b58d0ec495d5417973e1c3fc3854053f46d79bc12311a9d