mirror of https://github.com/daffainfo/nuclei.git
WIP updates
parent
0eea45fb60
commit
2c8730690b
|
@ -1,12 +1,15 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
git checkout master
|
currentBranch=$(git branch --show-current)
|
||||||
cd ../nuclei/
|
|
||||||
|
echo 'Building functional-test binary'
|
||||||
go build
|
go build
|
||||||
cp nuclei ../functional-test/nuclei_main
|
|
||||||
git checkout dev
|
echo 'Building Nuclei binary from' $currentBranch 'branch'
|
||||||
go build
|
go build -o nuclei_$currentBranch ../nuclei
|
||||||
cp nuclei ../functional-test/nuclei_dev
|
|
||||||
cd ../functional-test
|
echo 'Installing latest release of nuclei'
|
||||||
go build
|
GO111MODULE=on go get -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei
|
||||||
./functional-test -main ./nuclei_main -dev ./nuclei_dev -testcases testcases.txt
|
|
||||||
|
echo 'Starting Nuclei functional test'
|
||||||
|
./functional-test -main $GOPATH/bin/nuclei -dev ./nuclei_$currentBranch -testcases testcases.txt
|
Loading…
Reference in New Issue