Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [ $CI_COMMIT_REF_NAME = "master" ]; then
- php /home/bitrix/www/scripts/mirgration_setup.php
- #create symlink for migrate files from submodules
- migrationsDir="/home/bitrix/www/local/php_interface/reducemigrations"
- for i in `find /home/bitrix/www/local/modules -maxdepth 1 -type d`
- do
- find $i/migrations/*.php -exec ln -sf {} $migrationsDir \;
- done
- php /home/bitrix/www/bitrix/tools/migrate apply -f #run migrate scenario
- echo "Success"
- else
- echo "Run only for master, current branch is $CI_COMMIT_REF_NAME"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement