inspec/.expeditor/buildkite/artifact.habitat.test.sh
Miah Johnson a0ef46ccf4 Stop using reserved pipelines with default triggers.
The pipeline prefixes: deploy, habitat, omnibus, and verify all have default
triggers associtated with them.

https://expeditor.chef.io/docs/reference/configuration/#pipelines

Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-18 12:14:26 -07:00

28 lines
493 B
Bash

#!/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 .
. results/last_build.sh
echo "--- Installing $pkg_ident"
hab pkg install "results/$pkg_artifact"
echo "+++ Testing $PLAN"
pushd "$project_root/test/artifact"
rake
popd