forked from containers/buildah
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.papr.sh
executable file
·42 lines (36 loc) · 1.06 KB
/
.papr.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
#!/bin/bash
set -xeuo pipefail
export GOPATH=$HOME/gopath
export PATH=$HOME/gopath/bin:$PATH
export GOSRC=$HOME/gopath/src/github.com/containers/buildah
(mkdir -p $GOSRC && cd /code && cp -r . $GOSRC)
dnf install -y \
bats \
btrfs-progs-devel \
bzip2 \
device-mapper-devel \
findutils \
git \
glib2-devel \
glibc-static \
gnupg \
golang \
gpgme-devel \
libassuan-devel \
libseccomp-devel \
libselinux-devel \
libselinux-utils \
make \
openssl \
ostree-devel \
skopeo-containers \
which
# Install gomega
go get github.com/onsi/gomega/...
# PAPR adds a merge commit, for testing, which fails the
# short-commit-subject validation test, so tell git-validate.sh to only check
# up to, but not including, the merge commit.
export GITVALIDATE_TIP=$(cd $GOSRC; git log -2 --pretty='%H' | tail -n 1)
make -C $GOSRC install.tools runc all validate test-unit test-integration TAGS="seccomp"
env BUILDAH_ISOLATION=chroot make -C $GOSRC test-integration TAGS="seccomp"
env BUILDAH_ISOLATION=rootless make -C $GOSRC test-integration TAGS="seccomp"