Skip to content

Commit

Permalink
Use core's before_install after cloning it
Browse files Browse the repository at this point in the history
  • Loading branch information
Fryguy authored and agrare committed May 25, 2022
1 parent 072a7b6 commit cfbe40a
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions bin/before_install
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
#!/bin/bash

if [ -n "$CI" ]; then
echo "== Installing system packages =="
sudo apt-get update
sudo apt-get install -y libcurl4-openssl-dev
echo
fi

# Ensure spec/manageiq is set up
gem_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." &>/dev/null && pwd)"
spec_manageiq="$gem_root/spec/manageiq"

Expand All @@ -18,3 +12,7 @@ elif [ ! -d "$spec_manageiq" ]; then
echo "== Cloning manageiq sample app =="
git clone https://github.com/ManageIQ/manageiq.git --branch master --depth 1 "$spec_manageiq"
fi
echo

# Run core's before_install
$spec_manageiq/bin/before_install

0 comments on commit cfbe40a

Please sign in to comment.