set up ruby sdk audit .yaml run

This commit is contained in:
Zadat Olayinka 2021-05-25 10:59:51 +01:00
parent 72e2286777
commit b397f7a2ae
2 changed files with 126 additions and 90 deletions

View File

@ -13,116 +13,119 @@ stages:
- RollbackIfTestsFail
include:
# GLOBAL JOBS
- '/ci/spec/global/lint.yaml'
- '/ci/spec/global/rollback.yaml'
# # GLOBAL JOBS
# - '/ci/spec/global/lint.yaml'
# - '/ci/spec/global/rollback.yaml'
# ACCOUNTS
- '/ci/spec/accounts/audit.yaml'
- '/ci/spec/accounts/deploy.yaml'
- '/ci/spec/accounts/rollback.yaml'
- '/ci/spec/accounts/lighthouse.yaml'
# # ACCOUNTS
# - '/ci/spec/accounts/audit.yaml'
# - '/ci/spec/accounts/deploy.yaml'
# - '/ci/spec/accounts/rollback.yaml'
# - '/ci/spec/accounts/lighthouse.yaml'
# ADMIN DASHBOARD
- '/ci/spec/admin-dashboard/audit.yaml'
- '/ci/spec/admin-dashboard/deploy.yaml'
- '/ci/spec/admin-dashboard/rollback.yaml'
# # ADMIN DASHBOARD
# - '/ci/spec/admin-dashboard/audit.yaml'
# - '/ci/spec/admin-dashboard/deploy.yaml'
# - '/ci/spec/admin-dashboard/rollback.yaml'
# API-DOCS DASHBOARD
- '/ci/spec/api-docs/audit.yaml'
- '/ci/spec/api-docs/deploy.yaml'
- '/ci/spec/api-docs/rollback.yaml'
# # API-DOCS DASHBOARD
# - '/ci/spec/api-docs/audit.yaml'
# - '/ci/spec/api-docs/deploy.yaml'
# - '/ci/spec/api-docs/rollback.yaml'
# BACKEND
- '/ci/spec/backend/audit.yaml'
- '/ci/spec/backend/build-n-test.yaml'
- '/ci/spec/backend/deploy.yaml'
- '/ci/spec/backend/rollback.yaml'
# # BACKEND
# - '/ci/spec/backend/audit.yaml'
# - '/ci/spec/backend/build-n-test.yaml'
# - '/ci/spec/backend/deploy.yaml'
# - '/ci/spec/backend/rollback.yaml'
# DASHBOARD
- '/ci/spec/dashboard/audit.yaml'
- '/ci/spec/dashboard/deploy.yaml'
- '/ci/spec/dashboard/rollback.yaml'
# # DASHBOARD
# - '/ci/spec/dashboard/audit.yaml'
# - '/ci/spec/dashboard/deploy.yaml'
# - '/ci/spec/dashboard/rollback.yaml'
# HELM-CHART
- '/ci/spec/helm-chart/audit.yaml'
- '/ci/spec/helm-chart/build-n-test.yaml'
- '/ci/spec/helm-chart/deploy.yaml'
- '/ci/spec/helm-chart/rollback.yaml'
# # HELM-CHART
# - '/ci/spec/helm-chart/audit.yaml'
# - '/ci/spec/helm-chart/build-n-test.yaml'
# - '/ci/spec/helm-chart/deploy.yaml'
# - '/ci/spec/helm-chart/rollback.yaml'
# HOME
- '/ci/spec/home/audit.yaml'
- '/ci/spec/home/deploy.yaml'
- '/ci/spec/home/rollback.yaml'
- '/ci/spec/home/lighthouse.yaml'
# # HOME
# - '/ci/spec/home/audit.yaml'
# - '/ci/spec/home/deploy.yaml'
# - '/ci/spec/home/rollback.yaml'
# - '/ci/spec/home/lighthouse.yaml'
# HTTP-TEST-SERVER
- '/ci/spec/http-test-server/audit.yaml'
- '/ci/spec/http-test-server/deploy.yaml'
- '/ci/spec/http-test-server/rollback.yaml'
# # HTTP-TEST-SERVER
# - '/ci/spec/http-test-server/audit.yaml'
# - '/ci/spec/http-test-server/deploy.yaml'
# - '/ci/spec/http-test-server/rollback.yaml'
# INIT-SCRIPT
- '/ci/spec/init-script/audit.yaml'
- '/ci/spec/init-script/deploy.yaml'
# # INIT-SCRIPT
# - '/ci/spec/init-script/audit.yaml'
# - '/ci/spec/init-script/deploy.yaml'
# LICENSING
- '/ci/spec/licensing/audit.yaml'
- '/ci/spec/licensing/build-n-test.yaml'
- '/ci/spec/licensing/deploy.yaml'
- '/ci/spec/licensing/rollback.yaml'
# # LICENSING
# - '/ci/spec/licensing/audit.yaml'
# - '/ci/spec/licensing/build-n-test.yaml'
# - '/ci/spec/licensing/deploy.yaml'
# - '/ci/spec/licensing/rollback.yaml'
# PROBE
- '/ci/spec/probe/audit.yaml'
- '/ci/spec/probe/deploy.yaml'
- '/ci/spec/probe/rollback.yaml'
# # PROBE
# - '/ci/spec/probe/audit.yaml'
# - '/ci/spec/probe/deploy.yaml'
# - '/ci/spec/probe/rollback.yaml'
# STATUS-PAGE
- '/ci/spec/status-page/audit.yaml'
- '/ci/spec/status-page/deploy.yaml'
- '/ci/spec/status-page/rollback.yaml'
# # STATUS-PAGE
# - '/ci/spec/status-page/audit.yaml'
# - '/ci/spec/status-page/deploy.yaml'
# - '/ci/spec/status-page/rollback.yaml'
# ZAPIER
- '/ci/spec/zapier/audit.yaml'
- '/ci/spec/zapier/build-n-test.yaml'
# # ZAPIER
# - '/ci/spec/zapier/audit.yaml'
# - '/ci/spec/zapier/build-n-test.yaml'
# E2E
- '/ci/spec/e2e/docker-compose-enterprise-test.yaml'
- '/ci/spec/e2e/docker-compose-test.yaml'
- '/ci/spec/e2e/kubernetes-enterprise-test.yaml'
- '/ci/spec/e2e/kubernetes-test.yaml'
# # E2E
# - '/ci/spec/e2e/docker-compose-enterprise-test.yaml'
# - '/ci/spec/e2e/docker-compose-test.yaml'
# - '/ci/spec/e2e/kubernetes-enterprise-test.yaml'
# - '/ci/spec/e2e/kubernetes-test.yaml'
# SMOKE TEST
- '/ci/spec/tests/staging.yaml'
- '/ci/spec/tests/production.yaml'
# # SMOKE TEST
# - '/ci/spec/tests/staging.yaml'
# - '/ci/spec/tests/production.yaml'
# JS-SDK
- '/ci/spec/js-sdk/audit.yaml'
- '/ci/spec/js-sdk/build-n-test.yaml'
- '/ci/spec/js-sdk/deploy.yaml'
# # JS-SDK
# - '/ci/spec/js-sdk/audit.yaml'
# - '/ci/spec/js-sdk/build-n-test.yaml'
# - '/ci/spec/js-sdk/deploy.yaml'
# PHP-SDK
- '/ci/spec/php-sdk/audit.yaml'
- '/ci/spec/php-sdk/build-n-test.yaml'
- '/ci/spec/php-sdk/deploy.yaml'
# # PHP-SDK
# - '/ci/spec/php-sdk/audit.yaml'
# - '/ci/spec/php-sdk/build-n-test.yaml'
# - '/ci/spec/php-sdk/deploy.yaml'
# JAVA-SDK
- '/ci/spec/java-sdk/audit.yaml'
- '/ci/spec/java-sdk/build-n-test.yaml'
- '/ci/spec/java-sdk/deploy.yaml'
# # JAVA-SDK
# - '/ci/spec/java-sdk/audit.yaml'
# - '/ci/spec/java-sdk/build-n-test.yaml'
# - '/ci/spec/java-sdk/deploy.yaml'
# PYTHON-SDK
- '/ci/spec/python-sdk/audit.yaml'
- '/ci/spec/python-sdk/build-n-test.yaml'
- '/ci/spec/python-sdk/deploy.yaml'
# # PYTHON-SDK
# - '/ci/spec/python-sdk/audit.yaml'
# - '/ci/spec/python-sdk/build-n-test.yaml'
# - '/ci/spec/python-sdk/deploy.yaml'
# HARAKA
- '/ci/spec/haraka/deploy.yaml'
# RUBY-SDK
- '/ci/spec/ruby-sdk/audit.yaml'
# FYIPE-LE-STORE
- '/ci/spec/fyipe-le-store/deploy.yaml'
# # HARAKA
# - '/ci/spec/haraka/deploy.yaml'
# FYIPE-ACME-HTTP-01
- '/ci/spec/fyipe-acme-http-01/deploy.yaml'
# # FYIPE-LE-STORE
# - '/ci/spec/fyipe-le-store/deploy.yaml'
# FYIPE-GL-MANAGER
- '/ci/spec/fyipe-gl-manager/deploy.yaml'
# # FYIPE-ACME-HTTP-01
# - '/ci/spec/fyipe-acme-http-01/deploy.yaml'
# # FYIPE-GL-MANAGER
# - '/ci/spec/fyipe-gl-manager/deploy.yaml'

View File

@ -0,0 +1,33 @@
## RUBY SDK
audit_ruby-sdk:
stage: BuildAndTest
allow_failure: true
script:
- chmod +x ./ci/scripts/checkhash.sh
- export next_stage=`./ci/scripts/checkhash.sh audit_ruby-sdk ruby-sdk`
- 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
- curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
- git clone https://github.com/rbenv/rbenv.git ~/.rbenv
- echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
- echo 'eval "$(rbenv init -)"' >> ~/.bashrc
- source ~/.bashrc
- type rbenv
# -
# -
# - cd ruby-sdk
# - npm ci
# - npm run audit
# - npm run dep-check
# - cd ..
# - chmod +x ./ci/scripts/storehash.sh
# - ./ci/scripts/storehash.sh audit_ruby-sdk ruby-sdk
# - chmod +x ./ci/scripts/cleanup.sh
# - ./ci/scripts/cleanup.sh
only:
refs:
- master
- release
- feature-ruby-sdk