mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-09-27 20:21:59 +02:00
ci: remove git hooks before uninstalling composer dev dependencies
This commit is contained in:
parent
231d578d64
commit
525698d834
@ -41,6 +41,11 @@ before_script:
|
||||
- php composer.phar install --prefer-dist --no-ansi --no-interaction --no-progress --ignore-platform-reqs
|
||||
- npm install
|
||||
|
||||
commit-message:
|
||||
stage: init
|
||||
script:
|
||||
- npx commitlint CI_COMMIT_MESSAGE
|
||||
|
||||
tests:
|
||||
stage: quality
|
||||
script:
|
||||
@ -55,6 +60,9 @@ code-review:
|
||||
bundle_app:
|
||||
stage: bundle
|
||||
script:
|
||||
# delete installed git hooks because captainhooks (dev dependency) will be removed
|
||||
- rm -rf ./.git/hooks
|
||||
|
||||
# remove dev dependencies using the --no-dev option
|
||||
- php composer.phar install --no-dev --prefer-dist --no-ansi --no-interaction --no-progress --ignore-platform-reqs
|
||||
|
||||
@ -91,9 +99,6 @@ release_app:
|
||||
# IMPORTANT: delete local git tags before release to prevent eventual script failure (ie. tag already exists)
|
||||
- git tag | xargs git tag -d
|
||||
|
||||
# IMPORTANT: no need to run git hooks, just remove them
|
||||
- rm -rf ./.git/hooks
|
||||
|
||||
# run semantic-release script (configured in `.releaserc.json` file)
|
||||
- npm run release
|
||||
only:
|
||||
|
@ -13,7 +13,7 @@ use App\Models\PodcastModel;
|
||||
class HomeController extends BaseController
|
||||
{
|
||||
/**
|
||||
* @return mixed
|
||||
* @return RedirectResponse|string
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user