scripts.yml 1.9 KB

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