diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..28d37e98 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,22 @@ +group: travis_latest +language: python +cache: pip +matrix: + include: + - python: 3.7 + dist: xenial # required for Python 3.7 (travis-ci/travis-ci#9069) + sudo: required # required for Python 3.7 (travis-ci/travis-ci#9069) +install: + - pip install --upgrade pip + - pip install -r requirements.txt + - pip install flake8 +before_script: + # stop the build if there are Python syntax errors or undefined names + - flake8 . --count --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 --max-complexity=10 --max-line-length=127 --statistics +script: + - true # add other tests here +notifications: + on_success: change + on_failure: change # `always` will be the setting once code changes slow down diff --git a/README.md b/README.md index a402ce0c..76a3b80d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ # Manim Animation engine for explanatory math videos. +[![build](https://img.shields.io/travis/3b1b/manim.svg "Travis build status")](https://travis-ci.com/3b1b/manim) + + For those who want to play around with this tool, I should be upfront that I've mostly had my own use cases (i.e. 3b1b videos) in mind while building it, and it might not be the most friendly thing to get up and running. In particular, I have not done a great job tracking requirements, writing tests, and documentation, to put it euphemistically, almost exclusively takes the form of naming conventions.