Skip to content

Commit

Permalink
Merge pull request #68 from cloudfoundry/automation/github-config/update
Browse files Browse the repository at this point in the history
Updates github-config
  • Loading branch information
ryanmoran committed Jun 16, 2021
2 parents b47d36a + 4caa68f commit e0f1e19
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 37 deletions.
22 changes: 0 additions & 22 deletions scripts/install_tools.sh

This file was deleted.

49 changes: 34 additions & 15 deletions scripts/integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,48 @@ function main() {
local stack
stack="$(jq -r -S .stack "${ROOTDIR}/config.json")"

echo "Run Uncached Buildpack"
cached=true
serial=true
if [[ "${src}" == *python ]]; then
run_specs "uncached" "parallel"
run_specs "uncached" "serial"

run_specs "cached" "parallel"
run_specs "cached" "serial"
else
run_specs "uncached" "parallel"
run_specs "cached" "parallel"
fi
}

function run_specs(){
local cached serial nodes

cached="false"
serial=""
nodes="${GINKGO_NODES:-3}"

echo "Run ${1} Buildpack"

if [[ "${1}" == "cached" ]] ; then
cached="true"
fi

if [[ "${2}" == "serial" ]]; then
nodes=1
serial="-serial=true"
fi

CF_STACK="${CF_STACK:-"${stack}"}" \
BUILDPACK_FILE="${UNCACHED_BUILDPACK_FILE:-}" \
ginkgo \
-r \
-mod vendor \
--flakeAttempts "${GINKGO_ATTEMPTS:-2}" \
-nodes "${GINKGO_NODES:-3}" \
--slowSpecThreshold 60 \
"${src}/integration" \
-- --cached=false

echo "Run Cached Buildpack"
CF_STACK="${CF_STACK:-"${stack}"}" \
BUILDPACK_FILE="${CACHED_BUILDPACK_FILE:-}" \
ginkgo \
-mod vendor \
-r \
--flakeAttempts "${GINKGO_ATTEMPTS:-2}" \
-nodes "${GINKGO_NODES:-3}" \
-nodes ${nodes} \
--slowSpecThreshold 60 \
"${src}/integration" \
-- --cached=true
-- --cached="${cached}" ${serial}
}

main "${@:-}"

0 comments on commit e0f1e19

Please sign in to comment.