aboutsummaryrefslogtreecommitdiff
path: root/.papr.sh
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2017-11-02 15:31:21 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2017-11-02 18:10:50 -0400
commitf590429592951ab1a39480e1d5fac05aa47a1192 (patch)
tree040e3c78b66ecb5bac86dde2041ccd74d8940884 /.papr.sh
parent0847e770bb1c666874da0374fadc0984ec3c62ef (diff)
downloadpodman-f590429592951ab1a39480e1d5fac05aa47a1192.tar.gz
podman-f590429592951ab1a39480e1d5fac05aa47a1192.tar.bz2
podman-f590429592951ab1a39480e1d5fac05aa47a1192.zip
Add .papr support
Don't run lint for now, since we seem to be running out of memory. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to '.papr.sh')
-rwxr-xr-x.papr.sh37
1 files changed, 37 insertions, 0 deletions
diff --git a/.papr.sh b/.papr.sh
new file mode 100755
index 000000000..fb837d661
--- /dev/null
+++ b/.papr.sh
@@ -0,0 +1,37 @@
+#!/bin/bash
+set -xeuo pipefail
+
+export GOPATH=$HOME/gopath
+export PATH=$HOME/gopath/bin:$PATH
+export GOSRC=$HOME/gopath/src/github.com/projectatomic/libpod
+
+(mkdir -p $GOSRC && cd /code && cp -r . $GOSRC)
+
+dnf install -y \
+ bats \
+ btrfs-progs-devel \
+ bzip2 \
+ device-mapper-devel \
+ findutils \
+ git \
+ glib2-devel \
+ gnupg \
+ golang \
+ gpgme-devel \
+ libassuan-devel \
+ libseccomp-devel \
+ libselinux-devel \
+ skopeo-containers \
+ runc \
+ make \
+ ostree-devel \
+ python \
+ which
+
+# 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)
+export TAGS="seccomp $($GOSRC/hack/btrfs_tag.sh) $($GOSRC/hack/libdm_tag.sh) $($GOSRC/hack/btrfs_installed_tag.sh) $($GOSRC/hack/ostree_tag.sh) $($GOSRC/hack/selinux_tag.sh)"
+make -C $GOSRC binaries install.tools all gofmt localintegration testunit TAGS="${TAGS}"
+#make -C $GOSRC lint