hashcheck audit for zapier

This commit is contained in:
deityhub 2020-07-14 21:56:31 +01:00
parent 90ecc19d9b
commit 1c2769ab64

View File

@ -3,16 +3,9 @@ audit_zapier:
stage: BuildAndTest
allow_failure: true
script:
- |
if [[ $CI_COMMIT_BRANCH != "master" ]] && [[ $CI_COMMIT_BRANCH != "release" ]]
then
chmod +x ./ci/scripts/checkhash.sh
export zapier_exist=`./ci/scripts/checkhash.sh audit_zapier zapier`
if [[ $zapier_exist == *"true"* ]]
then
exit ${CI_JOB_SKIP_EXIT_CODE:-0}
fi
fi
- chmod +x ./ci/scripts/checkhash.sh
- export next_stage=`./ci/scripts/checkhash.sh audit_zapier zapier`
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
- sudo apt-get update
- sudo apt-get install -y curl gcc
- sudo apt-get install -y build-essential
@ -23,12 +16,8 @@ audit_zapier:
- npm run audit
- npm run dep-check
- cd ..
- |
if [[ $CI_COMMIT_BRANCH != "master" ]] && [[ $CI_COMMIT_BRANCH != "release" ]]
then
chmod +x ./ci/scripts/storehash.sh
./ci/scripts/storehash.sh audit_zapier zapier
fi
- chmod +x ./ci/scripts/storehash.sh
- ./ci/scripts/storehash.sh audit_zapier zapier
except:
refs:
- hotfix-master