2017-03-24 22:44:42 +08:00
|
|
|
#!/bin/bash
|
|
|
|
set -xeuo pipefail
|
|
|
|
|
|
|
|
export GOPATH=$HOME/gopath
|
|
|
|
export PATH=$HOME/gopath/bin:$PATH
|
|
|
|
export GOSRC=$HOME/gopath/src/github.com/projectatomic/buildah
|
|
|
|
|
|
|
|
(mkdir -p $GOSRC && cd /code && cp -r . $GOSRC)
|
|
|
|
|
|
|
|
dnf install -y \
|
|
|
|
bats \
|
|
|
|
btrfs-progs-devel \
|
2017-04-04 05:43:57 +08:00
|
|
|
bzip2 \
|
2017-03-24 22:44:42 +08:00
|
|
|
device-mapper-devel \
|
2017-04-04 05:43:57 +08:00
|
|
|
findutils \
|
|
|
|
git \
|
2017-06-28 22:51:30 +08:00
|
|
|
glib2-devel \
|
2017-10-06 01:48:22 +08:00
|
|
|
gnupg \
|
2017-04-04 05:43:57 +08:00
|
|
|
golang \
|
2017-03-24 22:44:42 +08:00
|
|
|
gpgme-devel \
|
|
|
|
libassuan-devel \
|
2017-07-21 01:41:51 +08:00
|
|
|
libseccomp-devel \
|
|
|
|
libselinux-devel \
|
2017-10-20 05:47:15 +08:00
|
|
|
libselinux-utils \
|
2017-04-04 05:43:57 +08:00
|
|
|
make \
|
2017-11-29 03:22:47 +08:00
|
|
|
openssl \
|
2017-06-28 22:51:30 +08:00
|
|
|
ostree-devel \
|
2017-04-04 05:43:57 +08:00
|
|
|
which
|
2017-03-24 22:44:42 +08:00
|
|
|
|
2017-07-28 00:51:35 +08:00
|
|
|
# PAPR adds a merge commit, for testing, which fails the
|
2017-04-04 05:43:57 +08:00
|
|
|
# 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)
|
2017-10-06 01:48:22 +08:00
|
|
|
make -C $GOSRC install.tools runc all validate test-unit test-integration TAGS="seccomp"
|