-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
31 lines (24 loc) · 950 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
TAG = coverity-scan
VERSION = 2023.3.0
maven: clean copy-maven build test-maven
net6: clean copy-net6 build test-net6
clean:
docker rmi -f ${TAG}
docker system prune -f
rm -f cov-analysis-linux64-${VERSION}.sh license.dat Dockerfile
copy-maven:
cp -fp Dockerfile.maven Dockerfile
copy-net6:
cp -fp Dockerfile.net6 Dockerfile
build:
ln /opt/coverity/software/cov-analysis-linux64-${VERSION}.sh .
ln /opt/coverity/software/license.dat .
docker build --build-arg VERSION=${VERSION} -t ${TAG} .
docker system prune -f
rm -f cov-analysis-linux64-${VERSION}.sh license.dat
test-maven:
docker run --rm -e COV_URL=${COV_URL} -e COV_USER=${COV_USER} -e COVERITY_PASSPHRASE=${COVERITY_PASSPHRASE} \
${TAG} https://github.com/WebGoat/WebGoat.git main
test-net6:
docker run --rm -e COV_URL=${COV_URL} -e COV_USER=${COV_USER} -e COVERITY_PASSPHRASE=${COVERITY_PASSPHRASE} \
${TAG} https://github.com/tobyash86/WebGoat.NET.git WebgoatNet6.0