feat: splitting tests

This commit is contained in:
Pierre Mavro
2021-01-28 11:15:07 +01:00
committed by Pierre Mavro
parent eabdca5fec
commit 8f975255c4
7 changed files with 3670 additions and 36 deletions

View File

@@ -46,15 +46,4 @@ jobs:
echo "Branch name: $branch"
export GITHUB_BRANCH=$branch
export GITHUB_COMMIT_ID=$GITHUB_SHA
gh_json=$(curl -s -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/Qovery/engine/pulls?state=open")
gh_pr=$(echo $gh_json | jq --compact-output '.[] | {labels, ref: .head.ref}' | grep "$branch")
echo "Pull request info: $(echo $gh_pr)"
num_labels=$(echo $gh_pr | jq '.labels | length')
tests_type="fast_tests"
if [ $num_labels -gt 0 ] ; then
if [ $(echo $gh_pr | grep -c 'full-tests') -eq 1 ] ; then
tests_type="full_tests"
fi
fi
echo $tests_type
./helper.sh $tests_type
./helper.sh autodetect