Merge pull request #10296 from hashicorp/c-script-tweaks-20210402
makefile cleanup
This commit is contained in:
commit
b2f9234b30
10
GNUmakefile
10
GNUmakefile
|
@ -72,8 +72,14 @@ endif
|
|||
CC=$(CC) \
|
||||
go build -trimpath -ldflags $(GO_LDFLAGS) -tags "$(GO_TAGS)" -o $(GO_OUT)
|
||||
|
||||
pkg/linux_arm/nomad: CC = arm-linux-gnueabihf-gcc-5
|
||||
pkg/linux_arm64/nomad: CC = aarch64-linux-gnu-gcc-5
|
||||
ifneq (armv7l,$(THIS_ARCH))
|
||||
pkg/linux_arm/nomad: CC = arm-linux-gnueabihf-gcc
|
||||
endif
|
||||
|
||||
ifneq (aarch64,$(THIS_ARCH))
|
||||
pkg/linux_arm64/nomad: CC = aarch64-linux-gnu-gcc
|
||||
endif
|
||||
|
||||
pkg/windows_%/nomad: GO_OUT = $@.exe
|
||||
|
||||
# Define package targets for each of the build targets we actually have on this system
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# First get the OS-specific packages
|
||||
GOOS=windows go get "${DEP_ARGS}" github.com/StackExchange/wmi
|
||||
GOOS=windows go get "${DEP_ARGS}" github.com/shirou/w32
|
||||
GOOS=linux go get "${DEP_ARGS}" github.com/docker/docker/pkg/mount
|
||||
GOOS=linux go get "${DEP_ARGS}" github.com/opencontainers/runc/libcontainer/cgroups/fs
|
||||
GOOS=linux go get "${DEP_ARGS}" github.com/opencontainers/runc/libcontainer/configs
|
||||
GOOS=linux go get "${DEP_ARGS}" github.com/coreos/go-systemd/util
|
||||
GOOS=linux go get "${DEP_ARGS}" github.com/coreos/go-systemd/dbus
|
||||
|
||||
# Get the rest of the deps
|
||||
DEPS=$(go list -f '{{range .TestImports}}{{.}} {{end}}' ./...)
|
||||
go get "${DEP_ARGS}" ./... "${DEPS}"
|
|
@ -1,10 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
echo "Exit code: $(cat exit-code)" >> test.log;
|
||||
grep -A10 'panic: test timed out' test.log || true;
|
||||
grep -A1 -- '--- SKIP:' test.log || true;
|
||||
grep -A1 -- '--- FAIL:' test.log || true;
|
||||
grep '^FAIL' test.log || true;
|
||||
exit_code=$(cat exit-code)
|
||||
echo "$exit_code "
|
||||
if [ "${exit_code}" == "0" ]; then echo "PASS" ; exit 0 ; else echo "TESTS FAILED"; exit 1 ; fi
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -o errexit
|
||||
|
||||
VERSION="1.6.0"
|
||||
OS="linux"
|
||||
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
||||
OS="darwin"
|
||||
fi
|
||||
DOWNLOAD=https://releases.hashicorp.com/consul/${VERSION}/consul_${VERSION}_${OS}_amd64.zip
|
||||
|
||||
function install_consul() {
|
||||
if [[ -e /usr/bin/consul ]] ; then
|
||||
if [ "v${VERSION}" == "$(consul version | head -n1 | awk '{print $2}')" ] ; then
|
||||
return
|
||||
fi
|
||||
fi
|
||||
|
||||
curl -sSL --fail -o /tmp/consul.zip ${DOWNLOAD}
|
||||
|
||||
unzip -d /tmp /tmp/consul.zip
|
||||
mv /tmp/consul /usr/local/bin/consul
|
||||
chmod +x /usr/local/bin/consul
|
||||
}
|
||||
|
||||
install_consul
|
|
@ -1,26 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -o errexit
|
||||
|
||||
VERSION=0.10.2
|
||||
OS="linux"
|
||||
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
||||
OS="darwin"
|
||||
fi
|
||||
DOWNLOAD=https://releases.hashicorp.com/vault/${VERSION}/vault_${VERSION}_${OS}_amd64.zip
|
||||
|
||||
function install_vault() {
|
||||
if [[ -e /usr/bin/vault ]] ; then
|
||||
if [ "v${VERSION}" = "$(vault version | head -n1 | awk '{print $2}')" ] ; then
|
||||
return
|
||||
fi
|
||||
fi
|
||||
|
||||
curl -sSL --fail -o /tmp/vault.zip ${DOWNLOAD}
|
||||
|
||||
unzip -d /tmp /tmp/vault.zip
|
||||
mv /tmp/vault /usr/local/bin/vault
|
||||
chmod +x /usr/local/bin/vault
|
||||
}
|
||||
|
||||
install_vault
|
|
@ -1,15 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -ex
|
||||
|
||||
DOCKER_VERSION="1.10.3"
|
||||
|
||||
sudo stop docker
|
||||
sudo rm -rf /var/lib/docker
|
||||
sudo rm -f "$(command -v docker)"
|
||||
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
|
||||
echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" | sudo tee /etc/apt/sources.list.d/docker.list
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y --force-yes -o Dpkg::Options::="--force-confnew" docker-engine="$DOCKER_VERSION-0~$(lsb_release -cs)"
|
||||
|
||||
docker version
|
|
@ -31,9 +31,9 @@ apt-get install -y \
|
|||
apt-get install -y \
|
||||
binutils-aarch64-linux-gnu \
|
||||
binutils-arm-linux-gnueabihf \
|
||||
gcc-5-aarch64-linux-gnu \
|
||||
gcc-5-arm-linux-gnueabihf \
|
||||
gcc-5-multilib-arm-linux-gnueabihf
|
||||
gcc-aarch64-linux-gnu \
|
||||
gcc-arm-linux-gnueabihf \
|
||||
gcc-multilib-arm-linux-gnueabihf
|
||||
|
||||
# Install Windows build utilities
|
||||
apt-get install -y \
|
||||
|
|
Loading…
Reference in New Issue