From 84b64f8f99dbde6bb42145469ad319f6a76c9f03 Mon Sep 17 00:00:00 2001 From: shmilylty Date: Sun, 4 Aug 2019 18:58:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9C=89=E5=85=B3=E9=9B=86?= =?UTF-8?q?=E6=88=90=E5=8C=96=E7=AE=A1=E7=90=86=E5=92=8C=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E8=A6=86=E7=9B=96=E7=8E=87=E6=A3=80=E6=9F=A5=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .travis.yml | 24 ++++++++++++++++++++++++ tests/test_example.py | 11 +++++++++++ 2 files changed, 35 insertions(+) create mode 100644 .travis.yml create mode 100644 tests/test_example.py 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()