diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 00000000..09d5234b --- /dev/null +++ b/.coveragerc @@ -0,0 +1,11 @@ +[run] +omit = + */tests* + +[report] +exclude_lines = + pragma: no cover + def __repr__ + raise NotImplementedError + if __name__ == .__main__.: + def parse_args diff --git a/.gitignore b/.gitignore index 647e34d1..3124fb8d 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,4 @@ plugin/crayfish.lib *.autosave .pytest_cache .cache +.coverage diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..402722ad --- /dev/null +++ b/.travis.yml @@ -0,0 +1,10 @@ +language: python +python: + - '3.6' +install: + - pip install pytest pytest-cov pycodestyle +script: + - pytest crayfish/tests/ --cov=crayfish --cov-report term-missing + - pycodestyle --statistics crayfish +after_success: + - coveralls \ No newline at end of file