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
Tags v1.0.0-alpha.57
1 merge request!137refactor: upgrade to php 8 + enforce type declarations, code quality + style + fix some bugs
Pipeline #874 failed
......@@ -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()
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment