123456789101112131415161718192021222324252627282930313233343536373839404142 |
- .scripts:
- source_rvm:
- - source /etc/profile.d/rvm.sh # ensure RVM is loaded
- bundle_install:
- - bundle config set --local deployment 'true'
- - bundle install -j $(nproc) > /dev/null
- pnpm_init: &pnpm_init
- - pnpm config set store-dir ${CI_PROJECT_DIR}/tmp/cache/pnpm-store
- pnpm_install: &pnpm_install
- - *pnpm_init
- - pnpm install
- pnpm_install_chat: &pnpm_install_chat
- - *pnpm_init
- - pnpm --dir public/assets/chat install
- pnpm_install_cypress: &pnpm_install_cypress
- - *pnpm_install
- - export CYPRESS_CACHE_FOLDER="${CI_PROJECT_DIR}/tmp/cache/cypress"
- - pnpm cypress:install
- pnpm_install_eslint_plugin_zammad: &pnpm_install_eslint_plugin_zammad
- - *pnpm_init
- - pnpm --dir .eslint-plugin-zammad install
- pnpm_install_all:
- - *pnpm_init
- - *pnpm_install
- - *pnpm_install_chat
- - *pnpm_install_cypress
- - *pnpm_install_eslint_plugin_zammad
- configure_environment:
- - bundle exec ruby .gitlab/configure_environment.rb
- - source .gitlab/environment.env
- zammad_db_init:
- - echo -e "\\e[0Ksection_start:`date +%s`:zammad_db_init[collapsed=true]\\r\\e[0Kbundle exec rake zammad:db:init"
- - bundle exec rake zammad:db:init
- - echo -e "\\e[0Ksection_end:`date +%s`:zammad_db_init\\r\\e[0K"
- zammad_db_unseeded:
- - echo -e "\\e[0Ksection_start:`date +%s`:zammad_db_unseeded[collapsed=true]\\r\\e[0Kbundle exec rake zammad:db:unseeded"
- - bundle exec rake zammad:db:unseeded
- - echo -e "\\e[0Ksection_end:`date +%s`:zammad_db_unseeded\\r\\e[0K"
- zammad_ci_test_prepare:
- - echo -e "\\e[0Ksection_start:`date +%s`:zammad_ci_test_prepare[collapsed=true]\\r\\e[0Kbundle exec rake zammad:ci:test:prepare"
- - bundle exec rake zammad:ci:test:prepare
- - echo -e "\\e[0Ksection_end:`date +%s`:zammad_ci_test_prepare\\r\\e[0K"
|