-
Notifications
You must be signed in to change notification settings - Fork 0
/
verify-w-docker.sh
43 lines (31 loc) · 1.02 KB
/
verify-w-docker.sh
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
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh
# It is only here for reference and backward compatibility, the source of truth
# is Jenkinsfile
# Stop script on NZEC
set -e
# Stop script if unbound variable found (use ${var:-} if intentional)
set -u
# Lines added to get the script running in the script path shell context
# reference: http://www.ostricher.com/2014/10/the-right-way-to-get-the-directory-of-a-bash-script/
cd "$(dirname "$0")"
# To avoid issues with MINGW and Git Bash, see:
# https://github.com/docker/toolbox/issues/673
# https://gist.github.com/borekb/cb1536a3685ca6fc0ad9a028e6a959e3
export MSYS_NO_PATHCONV=1
export MSYS2_ARG_CONV_EXCL="*"
echo Verify git commit conventions...
sh ./gitlint.sh
echo Verify Dockerfile...
sh ./dockerlint.sh
echo Verify .sh files...
docker build --target verify-sh .
echo Restore...
docker build --target restore .
echo Verify Format...
docker build --target verify-format .
echo Verify Spell...
docker build --target verify-spell .
echo Test...
docker build --target test .
echo Build...
docker build --target build .