topic2k/pygcgen

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
sudo: false
language: python
cache: pip
python:
  - "2.7"
  - "3.6"

addons:
  apt_packages:
    - pandoc

install:
  - pip install --upgrade setuptools
  - pip install coverage
  - pip install codeclimate-test-reporter
  - pip install -r requirements.txt
  - pip install pypandoc
  - python setup.py install

script:
  - pygcgen
  - if [ "$TRAVIS_BRANCH" == "master" ]; then
      coverage run --source pygcgen run-a-test-generation.py;
    else
      python run-a-test-generation.py;
    fi

after_success:
  - if [ "$TRAVIS_BRANCH" == "master" ]; then
      codeclimate-test-reporter;
    fi