2021-07-30 09:59:12 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-08-02 06:10:44 +00:00
|
|
|
currentBranch=$(git branch --show-current)
|
|
|
|
|
|
|
|
echo 'Building functional-test binary'
|
2021-07-30 14:31:27 +00:00
|
|
|
go build
|
2021-08-02 06:10:44 +00:00
|
|
|
|
|
|
|
echo 'Building Nuclei binary from' $currentBranch 'branch'
|
|
|
|
go build -o nuclei_$currentBranch ../nuclei
|
|
|
|
|
|
|
|
echo 'Installing latest release of nuclei'
|
|
|
|
GO111MODULE=on go get -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei
|
|
|
|
|
|
|
|
echo 'Starting Nuclei functional test'
|
2021-08-02 06:32:40 +00:00
|
|
|
./functional-test -main nuclei -dev ./nuclei_$currentBranch -testcases testcases.txt
|