Skip to content

Commit

Permalink
Use stan file from project folder (#68)
Browse files Browse the repository at this point in the history
* Use stan file from project folder

* Rename testing.yml to tests.yml
  • Loading branch information
chrfritsch authored Jun 13, 2022
1 parent 746ba63 commit 418d8e9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
File renamed without changes.
6 changes: 1 addition & 5 deletions lib/stages/deprecation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,8 @@ _stage_deprecation() {

project_location=$(get_project_location)

if [ ! -f "${DRUPAL_TESTING_DRUPAL_INSTALLATION_DIRECTORY}/phpstan.neon" ]; then
cp phpstan.neon "${DRUPAL_TESTING_DRUPAL_INSTALLATION_DIRECTORY}"
fi

cd "${DRUPAL_TESTING_DRUPAL_INSTALLATION_DIRECTORY}" || exit
composer exec phpstan -- analyse --memory-limit "${PHPSTAN_MEMORY_LIMIT}" "${project_location}"
composer exec phpstan -- analyse --memory-limit "${PHPSTAN_MEMORY_LIMIT}" "${project_location}" --configuration="${project_location}/phpstan.neon"
cd - || exit
fi
}

0 comments on commit 418d8e9

Please sign in to comment.