mirror of
https://code.castopod.org/adaures/castopod
synced 2025-06-05 17:02:01 +00: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
|
- php composer.phar install --prefer-dist --no-ansi --no-interaction --no-progress --ignore-platform-reqs
|
||||||
- npm install
|
- npm install
|
||||||
|
|
||||||
|
commit-message:
|
||||||
|
stage: init
|
||||||
|
script:
|
||||||
|
- npx commitlint CI_COMMIT_MESSAGE
|
||||||
|
|
||||||
tests:
|
tests:
|
||||||
stage: quality
|
stage: quality
|
||||||
script:
|
script:
|
||||||
@ -55,6 +60,9 @@ code-review:
|
|||||||
bundle_app:
|
bundle_app:
|
||||||
stage: bundle
|
stage: bundle
|
||||||
script:
|
script:
|
||||||
|
# delete installed git hooks because captainhooks (dev dependency) will be removed
|
||||||
|
- rm -rf ./.git/hooks
|
||||||
|
|
||||||
# remove dev dependencies using the --no-dev option
|
# 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
|
- 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)
|
# IMPORTANT: delete local git tags before release to prevent eventual script failure (ie. tag already exists)
|
||||||
- git tag | xargs git tag -d
|
- 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)
|
# run semantic-release script (configured in `.releaserc.json` file)
|
||||||
- npm run release
|
- npm run release
|
||||||
only:
|
only:
|
||||||
|
@ -13,7 +13,7 @@ use App\Models\PodcastModel;
|
|||||||
class HomeController extends BaseController
|
class HomeController extends BaseController
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @return mixed
|
* @return RedirectResponse|string
|
||||||
*/
|
*/
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user