mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Debugging CI/CD failure
This commit is contained in:
parent
1feb6f73b9
commit
60403f80df
3 changed files with 15 additions and 6 deletions
17
.github/workflows/tests.yml
vendored
17
.github/workflows/tests.yml
vendored
|
|
@ -40,11 +40,20 @@ jobs:
|
||||||
- name: Pyflakes lint
|
- name: Pyflakes lint
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
set +e
|
||||||
python -m pip install pyflakes
|
python -m pip install pyflakes
|
||||||
OUT=$(git ls-files '*.py' | grep -v '^thirdparty/' | xargs python -m pyflakes 2>&1) || true
|
python -c "
|
||||||
OUT=$(echo "$OUT" | grep -v ' redefines ')
|
import subprocess, sys
|
||||||
if [ -n "$OUT" ]; then echo "$OUT"; exit 1; fi
|
files = subprocess.check_output(['git', 'ls-files', '*.py']).decode().splitlines()
|
||||||
echo "pyflakes: clean"
|
files = [f for f in files if not f.startswith('thirdparty/')]
|
||||||
|
p = subprocess.Popen([sys.executable, '-m', 'pyflakes'] + files, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||||
|
out, _ = p.communicate()
|
||||||
|
lines = [l for l in out.decode().splitlines() if ' redefines ' not in l]
|
||||||
|
if lines:
|
||||||
|
print('\n'.join(lines))
|
||||||
|
sys.exit(1)
|
||||||
|
print('pyflakes: clean')
|
||||||
|
"
|
||||||
|
|
||||||
- name: Basic import test
|
- name: Basic import test
|
||||||
run: python -c "import sqlmap; import sqlmapapi"
|
run: python -c "import sqlmap; import sqlmapapi"
|
||||||
|
|
|
||||||
|
|
@ -189,7 +189,7 @@ e033b20a0f7821797a10f4bf4235723f38c7db551c611fbb713faa621b123c4a lib/core/optio
|
||||||
9bf174058f15d14e24e94f9aaf42df045119d3617c6c54bd2f3af79b462f331d lib/core/replication.py
|
9bf174058f15d14e24e94f9aaf42df045119d3617c6c54bd2f3af79b462f331d lib/core/replication.py
|
||||||
0b8c38a01bb01f843d94a6c5f2075ee47520d0c4aa799cecea9c3e2c5a4a23a6 lib/core/revision.py
|
0b8c38a01bb01f843d94a6c5f2075ee47520d0c4aa799cecea9c3e2c5a4a23a6 lib/core/revision.py
|
||||||
888daba83fd4a34e9503fe21f01fef4cc730e5cde871b1d40e15d4cbc847d56c lib/core/session.py
|
888daba83fd4a34e9503fe21f01fef4cc730e5cde871b1d40e15d4cbc847d56c lib/core/session.py
|
||||||
ad4e8f1a5cd72c74e8686a15e70195abcee977b1f874667af77ffca0614b35c5 lib/core/settings.py
|
5210684c1d6eecef0305077b22809569595ed039e3c1852ceeeb78338d8fa9b2 lib/core/settings.py
|
||||||
c7804223319e18eb0b8e2cbf0a8b6896d1cefb7b0b1a2e9f1cf826a8a3b56750 lib/core/shell.py
|
c7804223319e18eb0b8e2cbf0a8b6896d1cefb7b0b1a2e9f1cf826a8a3b56750 lib/core/shell.py
|
||||||
a2e98a94b231432736d6b304fc75525c8b5fdb4768c418387c5b4c1a610dad64 lib/core/subprocessng.py
|
a2e98a94b231432736d6b304fc75525c8b5fdb4768c418387c5b4c1a610dad64 lib/core/subprocessng.py
|
||||||
19f1e3c5e3ba703d28d510cd7a9ab8284d5fbe9df5ce7e77c86e5931571364b7 lib/core/target.py
|
19f1e3c5e3ba703d28d510cd7a9ab8284d5fbe9df5ce7e77c86e5931571364b7 lib/core/target.py
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ from lib.core.enums import OS
|
||||||
from thirdparty import six
|
from thirdparty import six
|
||||||
|
|
||||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||||
VERSION = "1.10.6.178"
|
VERSION = "1.10.6.179"
|
||||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
||||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue