Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
routersploit
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
czos-dpend
routersploit
Commits
ae9cd5a8
Unverified
Commit
ae9cd5a8
authored
May 28, 2018
by
Marcin Bury
Committed by
GitHub
May 28, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing Makefile (#440)
parent
121f875a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
11 deletions
+7
-11
run.sh
.travis/run.sh
+1
-1
Makefile
Makefile
+5
-10
requirements-dev.txt
requirements-dev.txt
+1
-0
No files found.
.travis/run.sh
View file @
ae9cd5a8
...
...
@@ -10,4 +10,4 @@ if [[ "$(uname -s)" == "Darwin" ]]; then
source
~/.venv/bin/activate
fi
python
-m
pytest
-n16
tests/
make lint tests
Makefile
View file @
ae9cd5a8
.PHONY
:
build run test lint lint-modules clean prune help
MODULES
=
routersploit
DIRECTORY
=
.
EXCLUDED
=
.git,rsf.py
RSF_IMAGE
=
routersploit
FLAKE8_IGNORED_RULES
=
E501,
W5
03
FLAKE8_IGNORED_RULES
=
E501,
F405,F4
03
build
:
docker build
-t
$(RSF_IMAGE)
.
...
...
@@ -11,14 +12,10 @@ run:
docker run
-it
--rm
$(RSF_IMAGE)
lint
:
flake8
--exclude
=
__init__.py
--ignore
=
$(FLAKE8_IGNORED_RULES)
$(MODULES
)
python3
-m
flake8
--exclude
=
$(EXCLUDED)
--ignore
=
$(FLAKE8_IGNORED_RULES)
$(DIRECTORY
)
tests
:
clean
ifeq
($(MODULES),
routersploit)
python
-m
unittest
discover
else
python
-m
unittest
$(MODULES)
endif
python3
-m
pytest
-n16
tests
clean
:
find
.
-name
'*.pyc'
-exec
rm
-f
{}
+
...
...
@@ -34,8 +31,6 @@ help:
@
echo
" Run Routersploit in docker container"
@
echo
" lint"
@
echo
" Check style with flake8."
@
echo
" lint-modules"
@
echo
" Check modules style with flake8."
@
echo
" test"
@
echo
" Run test suite"
@
echo
" clean"
...
...
requirements-dev.txt
View file @
ae9cd5a8
...
...
@@ -6,4 +6,5 @@ pycrypto==2.6.1
pytest==3.5.1
pytest-forked==0.2
pytest-xdist==1.22.2
flake8==3.5.0
git+git://github.com/threat9/threat9-test-bed
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment