]> ruderich.org/simon Gitweb - nsscash/nsscash.git/blob - ci/run
.gitlab-ci.yml: use ci/run and switch to GOPATH-less build
[nsscash/nsscash.git] / ci / run
1 #!/bin/sh
2
3 set -eu
4 set -x
5
6
7 flags=
8 if test $# -ne 0; then
9     flags="$*"
10 fi
11
12 make      $flags
13 make test $flags
14
15 test -z "$(git clean -nd)" # any untracked files left?
16 make clean
17 test -z "$(git clean -ndx)" # any unignored files left?
18
19 # Build with clang
20 make      CC=clang $flags
21 make test CC=clang $flags