Use the new tools/test-setup.sh for bootstrapping our dev/test environment Change-Id: Ic5c9d89d4a6d89f8a4b138fc9c814452fc6ff104changes/45/414245/3
parent
9b52de086d
commit
34a783684a
@ -0,0 +1,6 @@
|
||||
hash: 29383d95fa712061eaaec8c9f3af33f4a29700e0d385f4f9f454f1ce27b05fec
|
||||
updated: 2016-12-21T14:53:45.41134367-06:00
|
||||
imports:
|
||||
- name: github.com/fullsailor/pkcs7
|
||||
version: cedaa6c8ea14493515fcf950eabba5eb1530c349
|
||||
devImports: []
|
@ -0,0 +1,3 @@
|
||||
package: git.openstack.org/openstack/golang-client.git
|
||||
import:
|
||||
- package: github.com/fullsailor/pkcs7
|
@ -0,0 +1,52 @@
|
||||
#!/bin/bash -xe
|
||||
# test-setup.sh - Install required stuffs
|
||||
# Used in both CI jobs and locally
|
||||
#
|
||||
# Install the following tools:
|
||||
# * glide
|
||||
|
||||
# Get OS
|
||||
case $(uname -s) in
|
||||
Darwin)
|
||||
OS=darwin
|
||||
;;
|
||||
Linux)
|
||||
if LSB_RELEASE=$(which lsb_release); then
|
||||
OS=$($LSB_RELEASE -s -c)
|
||||
else
|
||||
# No lsb-release, trya hack or two
|
||||
if which dpkg 1>/dev/null; then
|
||||
OS=debian
|
||||
elif which yum 1>/dev/null || which dnf 1>/dev/null; then
|
||||
OS=redhat
|
||||
else
|
||||
echo "Linux distro not yet supported"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported OS"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
case $OS in
|
||||
darwin)
|
||||
if which brew 1>/dev/null; then
|
||||
brew install glide
|
||||
else
|
||||
echo "Homebrew not found, install Glide from source?"
|
||||
fi
|
||||
;;
|
||||
xenial)
|
||||
APT_GET="DEBIAN_FRONTEND=noninteractive \
|
||||
apt-get -q --option "Dpkg::Options::=--force-confold" \
|
||||
--assume-yes"
|
||||
if ! which add-apt-repository 1>/dev/null; then
|
||||
sudo $APT_GET install software-properties-common
|
||||
fi
|
||||
sudo add-apt-repository --yes ppa:masterminds/glide && sudo apt-get update
|
||||
sudo $APT_GET install glide
|
||||
;;
|
||||
esac
|
Loading…
Reference in new issue