update to travis-ci.com

This commit is contained in:
tp7309
2021-06-06 10:34:29 +08:00
parent 29c93edaea
commit e67c1be585
9 changed files with 73 additions and 13 deletions
+2
View File
@@ -0,0 +1,2 @@
[run]
source=.
+10
View File
@@ -0,0 +1,10 @@
version = 1
test_patterns = ["tests/test_*.py"]
[[analyzers]]
name = "python"
enabled = true
[analyzers.meta]
runtime_version = "3.x.x"
+1
View File
@@ -10,6 +10,7 @@ libs/**/README.md
libs/**/LICENSE
libs/**/LICENSE.txt
libs/**/NOTICE
repack.py
# Byte-compiled / optimized / DLL files
__pycache__/
+7 -4
View File
@@ -1,13 +1,16 @@
language: python
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "nightly"
# command to install dependencies
install:
- pip install coveralls
pip install -r requirements.txt
pip install pytest-cov
# command to run tests
script: nosetests --with-coverage
script: pytest --cov
after_success:
coveralls
- bash <(curl -s https://codecov.io/bash)
+1 -1
View File
@@ -97,7 +97,7 @@
"name": "Python: All debug Options",
"type": "python",
"request": "launch",
"pythonPath": "${command:python.interpreterPath}",
"python": "${command:python.interpreterPath}",
"program": "${file}",
"module": "module.name",
"env": {
+2 -1
View File
@@ -7,7 +7,8 @@ verify_ssl = true
pyinstaller = "*"
autopep8 = "*"
flake8 = "*"
nose2 = "*"
pytest = "*"
pytest-cov = "*"
[packages]
+4 -4
View File
@@ -1,8 +1,8 @@
# TTDeDroid
[![Build Status](https://travis-ci.org/tp7309/TTDeDroid.svg?branch=master)](https://travis-ci.org/tp7309/TTDeDroid)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/2778d8960e094469bc7d4b04d28eb059)](https://www.codacy.com/app/tp7309/TTDeDroid?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=tp7309/TTDeDroid&amp;utm_campaign=Badge_Grade)
<!-- [![Coverage Status](https://coveralls.io/repos/github/tp7309/TTDeDroid/badge.svg?branch=master)](https://coveralls.io/github/tp7309/TTDeDroid?branch=master) -->
README i18n: [中文说明](https://github.com/tp7309/AndroidOneKeyDecompiler/blob/master/README_zh_CN.md)
[![Build Status](https://travis-ci.com/tp7309/TTDeDroid.svg?branch=master)](https://travis-ci.com/tp7309/TTDeDroid)
<!-- [![codecov](https://codecov.io/gh/tp7309/TTDeDroid/branch/master/graph/badge.svg?token=lyEWTqfeb9)](https://codecov.io/gh/tp7309/TTDeDroid) -->
[![DeepSource](https://deepsource.io/gh/tp7309/TTDeDroid.svg/?label=active+issues&show_trend=true)](https://deepsource.io/gh/tp7309/TTDeDroid/?ref=repository-badge)
README i18n: [中文说明](https://github.com/tp7309/TTDeDroid/blob/master/README_zh_CN.md)
The tool for quickly decompile **apk/aar/dex/jar**, will be updated depending on the update of libs.
+3 -3
View File
@@ -1,7 +1,7 @@
# TTDeDroid
[![Build Status](https://travis-ci.org/tp7309/TTDeDroid.svg?branch=master)](https://travis-ci.org/tp7309/TTDeDroid)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/2778d8960e094469bc7d4b04d28eb059)](https://www.codacy.com/app/tp7309/TTDeDroid?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=tp7309/TTDeDroid&amp;utm_campaign=Badge_Grade)
<!-- [![Coverage Status](https://coveralls.io/repos/github/tp7309/TTDeDroid/badge.svg?branch=master)](https://coveralls.io/github/tp7309/TTDeDroid?branch=master) -->
[![Build Status](https://travis-ci.com/tp7309/TTDeDroid.svg?branch=master)](https://travis-ci.com/tp7309/TTDeDroid)
<!-- [![codecov](https://codecov.io/gh/tp7309/TTDeDroid/branch/master/graph/badge.svg?token=lyEWTqfeb9)](https://codecov.io/gh/tp7309/TTDeDroid) -->
[![DeepSource](https://deepsource.io/gh/tp7309/TTDeDroid.svg/?label=active+issues&show_trend=true)](https://deepsource.io/gh/tp7309/TTDeDroid/?ref=repository-badge)
一键反编译 **apk/aar/dex/jar**,没什么技术含量,只是调调工具命令,处理些兼容性问题,会视反编译库的更新情况更新工具版本。
+43
View File
@@ -0,0 +1,43 @@
#!/usr/bin python3
import shutil
import os
import stat
import subprocess
_ROOT_PATH = os.path.dirname(os.path.abspath(__file__))
def readonly_handler(func, path, execinfo):
# or os.chmod(path, stat.S_IWRITE) from "stat" module
os.chmod(path, stat.S_IWRITE)
func(path)
def rmtree(path):
if os.path.exists(path):
rmtree(path, onerror=readonly_handler)
def main():
destdir = os.path.join(os.path.expanduser('~'), 'Downloads')
zippath = os.path.join(destdir, "TTDeDroid.zip")
rmtree(zippath)
# shutil.copy(_ROOT_PATH, destdir)
subprocess.call("cp -r %s %s"%('_ROOT_PATH', destdir), shell=True)
os.chdir(os.path.join(destdir, "TTDeDroid"))
rmtree(".git")
rmtree("sources")
rmtree("cache")
rmtree("dist")
rmtree("build")
rmtree(".vscode")
rmtree(".history")
rmtree("__pycache__")
os.remove('.DS_Store')
subprocess.call("7z a %s %s"%(os.path.join(destdir, "TTDeDroid"), zippath))
if __name__ == '__main__':
main()