Skip to content

Commit

Permalink
Try to make it run again
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldtse committed Jan 23, 2018
1 parent ed7a11f commit 6cb3696
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
14 changes: 4 additions & 10 deletions ci/before_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,15 @@ freebsd_install() {
}

openbsd_install() {
sudo pkg_add bzip2
sudo pkg_add cmake
sudo pkg_add gmake
sudo pkg_add gettext-tools
sudo pkg_add gnupg-2.1.15p2
sudo pkg_add wget
sudo pkg_add libiconv
if [ "$(id -u)" -ne 0 ]; then
echo "need to run as root"
exit 1
fi

export PKG_PATH="https://cloudflare.cdn.openbsd.org/pub/OpenBSD/$(uname -r)/packages/$(uname -m)"

# CI script dependencies
for pkg in bash git wget; do
# CI script and build dependencies
for pkg in bash git wget bzip2 cmake gmake gettext-tools libiconv; do
pkg_info | grep -q "${pkg}" && \
continue

Expand All @@ -66,7 +59,7 @@ openbsd_install() {

rm -f /bin/bash
ln -s /usr/local/bin/bash /bin/bash
grep -q "^/bin/bash" || \
grep -q "^/bin/bash" /etc/shells || \
echo "/bin/bash" >> /etc/shells

for pkg in automake gnupg; do
Expand All @@ -79,6 +72,7 @@ openbsd_install() {
pkg_add -I "${pkg_ver}"
done

# Create link to expected gpg binary name and location
rm -f ${GPG21_INSTALL}/bin/gpg
ln /usr/local/bin/gpg2 ${GPG21_INSTALL}/bin/gpg

Expand Down
4 changes: 4 additions & 0 deletions ci/env-openbsd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ export BUILD_MODE=normal
export CLANG_FORMAT_DIFF="clang-format-diff-4.0"
export CC=gcc
export MAKE=gmake

# TODO: make these read from pkg_info
export AUTOCONF_VERSION=2.69
export AUTOMAKE_VERSION=1.15

# TODO: use this environment variable in test scripts
export GPG=gpg2

0 comments on commit 6cb3696

Please sign in to comment.