Skip to content
Snippets Groups Projects
Unverified Commit 525698d8 authored by Yassine Doghri's avatar Yassine Doghri
Browse files

ci: remove git hooks before uninstalling composer dev dependencies

parent 231d578d
No related branches found
No related tags found
No related merge requests found
...@@ -41,6 +41,11 @@ before_script: ...@@ -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: ...@@ -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: ...@@ -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; ...@@ -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()
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment