scripts.yml 1.9 KB

12345678910111213141516171819202122232425262728293031323334
  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 frozen 'true'
  7. - bundle config set --local path 'vendor'
  8. - bundle install -j $(nproc)
  9. - echo -e "\\e[0Ksection_end:`date +%s`:bundle_install\\r\\e[0K"
  10. yarn_install:
  11. - echo -e "\\e[0Ksection_start:`date +%s`:yarn_install[collapsed=true]\\r\\e[0Kyarn install"
  12. - yarn install
  13. - echo -e "\\e[0Ksection_end:`date +%s`:yarn_install\\r\\e[0K"
  14. yarn_install_all:
  15. # retry on errors
  16. - yarn install || yarn install || yarn install
  17. - yarn cypress:install || yarn cypress:install || yarn cypress:install
  18. - yarn --cwd .eslint-plugin-zammad install || yarn --cwd .eslint-plugin-zammad install || yarn --cwd .eslint-plugin-zammad install
  19. - yarn --cwd public/assets/chat install || yarn --cwd public/assets/chat install || yarn --cwd public/assets/chat install
  20. configure_environment:
  21. - bundle exec ruby .gitlab/configure_environment.rb
  22. - source .gitlab/environment.env
  23. zammad_db_init:
  24. - echo -e "\\e[0Ksection_start:`date +%s`:zammad_db_init[collapsed=true]\\r\\e[0Kbundle exec rake zammad:db:init"
  25. - bundle exec rake zammad:db:init
  26. - echo -e "\\e[0Ksection_end:`date +%s`:zammad_db_init\\r\\e[0K"
  27. zammad_db_unseeded:
  28. - echo -e "\\e[0Ksection_start:`date +%s`:zammad_db_unseeded[collapsed=true]\\r\\e[0Kbundle exec rake zammad:db:unseeded"
  29. - bundle exec rake zammad:db:unseeded
  30. - echo -e "\\e[0Ksection_end:`date +%s`:zammad_db_unseeded\\r\\e[0K"
  31. zammad_ci_test_prepare:
  32. - echo -e "\\e[0Ksection_start:`date +%s`:zammad_ci_test_prepare[collapsed=true]\\r\\e[0Kbundle exec rake zammad:ci:test:prepare"
  33. - bundle exec rake zammad:ci:test:prepare
  34. - echo -e "\\e[0Ksection_end:`date +%s`:zammad_ci_test_prepare\\r\\e[0K"