scripts.yml 1.8 KB

123456789101112131415161718192021222324252627282930313233
  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_install:
  10. - pnpm config set store-dir .pnpm-store
  11. - pnpm install
  12. pnpm_install_all:
  13. # retry on errors
  14. - pnpm config set store-dir .pnpm-store
  15. - pnpm install || pnpm install || pnpm install
  16. - pnpm cypress:install || pnpm cypress:install || pnpm cypress:install
  17. - pnpm --dir .eslint-plugin-zammad install || pnpm --dir .eslint-plugin-zammad install || pnpm --dir .eslint-plugin-zammad install
  18. - pnpm --dir public/assets/chat install || pnpm --dir public/assets/chat install || pnpm --dir public/assets/chat install
  19. configure_environment:
  20. - bundle exec ruby .gitlab/configure_environment.rb
  21. - source .gitlab/environment.env
  22. zammad_db_init:
  23. - echo -e "\\e[0Ksection_start:`date +%s`:zammad_db_init[collapsed=true]\\r\\e[0Kbundle exec rake zammad:db:init"
  24. - bundle exec rake zammad:db:init
  25. - echo -e "\\e[0Ksection_end:`date +%s`:zammad_db_init\\r\\e[0K"
  26. zammad_db_unseeded:
  27. - echo -e "\\e[0Ksection_start:`date +%s`:zammad_db_unseeded[collapsed=true]\\r\\e[0Kbundle exec rake zammad:db:unseeded"
  28. - bundle exec rake zammad:db:unseeded
  29. - echo -e "\\e[0Ksection_end:`date +%s`:zammad_db_unseeded\\r\\e[0K"
  30. zammad_ci_test_prepare:
  31. - echo -e "\\e[0Ksection_start:`date +%s`:zammad_ci_test_prepare[collapsed=true]\\r\\e[0Kbundle exec rake zammad:ci:test:prepare"
  32. - bundle exec rake zammad:ci:test:prepare
  33. - echo -e "\\e[0Ksection_end:`date +%s`:zammad_ci_test_prepare\\r\\e[0K"