mirror of
https://github.com/inspec/inspec
synced 2024-11-27 23:20:33 +00:00
32521c098c
Signed-off-by: Miah Johnson <miah@chia-pet.org>
35 lines
609 B
Bash
Executable file
35 lines
609 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 "+++ BUGCITY"
|
|
tree
|
|
|
|
cat /src/results/last_build.env
|
|
|
|
if [ -f /src/results/last_build.sh ]; then
|
|
. /src/results/last_build.sh
|
|
fi
|
|
|
|
echo "--- Installing $pkg_ident"
|
|
hab pkg install "/src/results/$pkg_artifact"
|
|
|
|
echo "+++ Testing $PLAN"
|
|
pushd "$project_root/test/artifact"
|
|
rake
|
|
popd
|