2021-02-25 23:32:43 +05:30
|
|
|
#!/bin/bash
|
|
|
|
|
|
2021-12-14 18:13:53 +02:00
|
|
|
echo "::group::Build nuclei"
|
2021-08-17 14:00:12 +03:00
|
|
|
rm integration-test nuclei 2>/dev/null
|
2021-02-25 23:32:43 +05:30
|
|
|
cd ../v2/cmd/nuclei
|
|
|
|
|
go build
|
2021-06-15 11:46:02 +05:30
|
|
|
mv nuclei ../../../integration_tests/nuclei
|
2021-12-14 18:13:53 +02:00
|
|
|
echo "::endgroup::"
|
|
|
|
|
echo "::group::Build nuclei integration-test"
|
2021-02-25 23:32:43 +05:30
|
|
|
cd ../integration-test
|
|
|
|
|
go build
|
2021-06-15 11:46:02 +05:30
|
|
|
mv integration-test ../../../integration_tests/integration-test
|
2021-02-25 23:32:43 +05:30
|
|
|
cd ../../../integration_tests
|
2021-12-14 18:13:53 +02:00
|
|
|
echo "::endgroup::"
|
2021-02-25 23:32:43 +05:30
|
|
|
./integration-test
|
2021-02-27 12:42:35 +05:30
|
|
|
if [ $? -eq 0 ]
|
2021-02-27 12:59:26 +05:30
|
|
|
then
|
2021-02-27 12:42:35 +05:30
|
|
|
exit 0
|
|
|
|
|
else
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|