inspec/.expeditor/buildkite/artifact.habitat.test.sh
Miah Johnson 36763a6026 maybe?
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-11-01 17:58:08 -07:00

31 lines
618 B
Bash
Executable file

#!/usr/bin/env bash
set -ueo pipefail
export HAB_ORIGIN='ci'
export PLAN='inspec'
echo "--- system details"
uname -a
echo "--- Generating fake origin key"
hab origin key generate $HAB_ORIGIN
echo "--- Building $PLAN"
project_root="$(git rev-parse --show-toplevel)"
cd "$project_root"
DO_CHECK=true hab pkg build .
echo "--- Sourcing 'results/last_build.sh'"
if [ -f ./results/last_build.sh ]; then
. ./results/last_build.sh
fi
echo "--- Installing ${pkg_ident:?is undefined}"
hab pkg install "./results/${pkg_artifact:?is undefined}"
echo "+++ Testing $PLAN"
pushd "$project_root/test/artifact"
rake
popd