WIP updates

dev
sandeep 2021-08-02 11:40:44 +05:30
parent 0eea45fb60
commit 2c8730690b
1 changed files with 12 additions and 9 deletions

View File

@ -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