diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..d08eb43 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,24 @@ +sudo: false + +notifications: + email: false + +dist: xenial + +language: python + +python: + - "3.6" + - "3.7" + - "3.8-dev" + +install: + - pip install -U pip + - pip install codecov + - pip install -r requirements.txt + +script: + - coverage run tests/test_example.py + +after_success: + - codecov \ No newline at end of file diff --git a/tests/test_example.py b/tests/test_example.py new file mode 100644 index 0000000..1875607 --- /dev/null +++ b/tests/test_example.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python3 +# coding=utf-8 + +""" +测试 +""" + +from oneforall import oneforall + +test = oneforall.OneForAll(target='example.com') +test.run()