Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
projectdiscovery
GitHub Repository: projectdiscovery/nuclei
Path: blob/dev/integration_tests/run.sh
2061 views
1
#!/bin/bash
2
3
echo "::group::Build nuclei"
4
rm integration-test fuzzplayground nuclei 2>/dev/null
5
cd ../cmd/nuclei
6
go build -race .
7
mv nuclei ../../integration_tests/nuclei
8
echo "::endgroup::"
9
10
echo "::group::Build nuclei integration-test"
11
cd ../integration-test
12
go build
13
mv integration-test ../../integration_tests/integration-test
14
cd ../../integration_tests
15
echo "::endgroup::"
16
17
echo "::group::Installing nuclei templates"
18
./nuclei -update-templates
19
echo "::endgroup::"
20
21
./integration-test
22
if [ $? -eq 0 ]
23
then
24
exit 0
25
else
26
exit 1
27
fi
28
29