forked from nickrusso42518/stig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (36 loc) · 1.06 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File: Makefile
# Version: GNU Make 3.81
# Author: Nicholas Russo ([email protected])
# Purpose: Phony targets used for linting (YAML/Python) and running
# the script for some quick testing. Unit tests may be
# added in the future. See .travis.yml for invocation.
.DEFAULT_GOAL := all
.PHONY: all
all: lint run
.PHONY: install
install:
@echo "Starting pkg installation"
pip install -r requirements.txt
@echo "Starting pkg installation"
.PHONY: lint
lint:
@echo "Starting lint"
find . -name "*.yml" | xargs yamllint -s
find . -name "*.py" | xargs pylint
find . -name "*.py" | xargs bandit
@echo "Completed lint"
.PHONY: run
run:
@echo "Starting runs"
python stig.py -f configs/ios_l2as.cfg
python stig.py -f configs/nxos_l3pr.cfg
python stig.py -f configs/asa_fw.cfg
python stig.py -f -v 0 configs/nxos_l2as.cfg
python stig.py -f -v 1 configs/ios_l3ir.cfg
python stig.py -f -v 2 configs/ios_l3pr.cfg
@echo "Completed runs"
.PHONY: dev
dev:
@echo "Starting dev tests"
python stig.py -v 1 configs/asa_fw.cfg
@echo "Completed dev tests"