scripts.yml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. .scripts:
  2. source_rvm:
  3. - source /etc/profile.d/rvm.sh # ensure RVM is loaded
  4. bundle_install:
  5. - bundle config set --local deployment 'true'
  6. - bundle install -j $(nproc) > /dev/null
  7. pnpm_init: &pnpm_init
  8. - pnpm config set store-dir ${CI_PROJECT_DIR}/tmp/cache/pnpm-store
  9. pnpm_install: &pnpm_install
  10. - *pnpm_init
  11. - pnpm install
  12. pnpm_install_chat: &pnpm_install_chat
  13. - *pnpm_init
  14. - pnpm --dir public/assets/chat install
  15. pnpm_install_cypress: &pnpm_install_cypress
  16. - *pnpm_install
  17. - export CYPRESS_CACHE_FOLDER="${CI_PROJECT_DIR}/tmp/cache/cypress"
  18. - pnpm cypress:install
  19. pnpm_install_eslint_plugin_zammad: &pnpm_install_eslint_plugin_zammad
  20. - *pnpm_init
  21. - pnpm --dir .eslint-plugin-zammad install
  22. pnpm_install_all:
  23. - *pnpm_init
  24. - *pnpm_install
  25. - *pnpm_install_chat
  26. - *pnpm_install_cypress
  27. - *pnpm_install_eslint_plugin_zammad
  28. configure_environment:
  29. - bundle exec ruby .gitlab/configure_environment.rb
  30. - source .gitlab/environment.env
  31. zammad_db_init:
  32. - echo -e "\\e[0Ksection_start:`date +%s`:zammad_db_init[collapsed=true]\\r\\e[0Kbundle exec rake zammad:db:init"
  33. - bundle exec rake zammad:db:init
  34. - echo -e "\\e[0Ksection_end:`date +%s`:zammad_db_init\\r\\e[0K"
  35. zammad_db_unseeded:
  36. - echo -e "\\e[0Ksection_start:`date +%s`:zammad_db_unseeded[collapsed=true]\\r\\e[0Kbundle exec rake zammad:db:unseeded"
  37. - bundle exec rake zammad:db:unseeded
  38. - echo -e "\\e[0Ksection_end:`date +%s`:zammad_db_unseeded\\r\\e[0K"
  39. zammad_ci_test_prepare:
  40. - echo -e "\\e[0Ksection_start:`date +%s`:zammad_ci_test_prepare[collapsed=true]\\r\\e[0Kbundle exec rake zammad:ci:test:prepare"
  41. - bundle exec rake zammad:ci:test:prepare
  42. - echo -e "\\e[0Ksection_end:`date +%s`:zammad_ci_test_prepare\\r\\e[0K"