mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-10-27 19:25:52 +08:00
添加有关集成化管理和代码覆盖率检查设置
This commit is contained in:
+24
@@ -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
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
# coding=utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
测试
|
||||||
|
"""
|
||||||
|
|
||||||
|
from oneforall import oneforall
|
||||||
|
|
||||||
|
test = oneforall.OneForAll(target='example.com')
|
||||||
|
test.run()
|
||||||
Reference in New Issue
Block a user