mirror of
https://github.com/inspec/inspec
synced 2025-02-17 14:38:43 +00:00
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>
28 lines
493 B
Bash
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
|