Skip to content

Commit

Permalink
Merge pull request #3893 from JacquesCarette/Stan
Browse files Browse the repository at this point in the history
Adding STAN to makefile
  • Loading branch information
JacquesCarette authored Jul 30, 2024
2 parents bd3b1c1 + 86376c8 commit ced8dff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion code/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ debug: test ##@Examples Run test target with better debugging tools.
# Debugging individual examples
$(DEBUG_EXAMPLES): %$(DEBUG_E_SUFFIX): %$(TEST_E_SUFFIX)

pr_ready: all hlint ##@General Check if your current work is ready to for a PR via `all` and `hlint`.
pr_ready: all stan hlint ##@General Check if your current work is ready to for a PR via `all` and `hlint` and stan.
@echo "Your build/ and stable/ match, and your code currently passes HLint tests."
@echo "Feel free to create a PR for your code if you feel it's ready."

Expand Down Expand Up @@ -534,6 +534,11 @@ clean: clean_artifacts ##@Cleaning Fully clean all generated builds, artifacts,
#--- Help & Information ---#
#--------------------------#

stan: ##@Stan Run Stan static analysis tool on the Drasil packages.
find . -type d -name 'drasil-*' -exec sh -c 'cd {} && stan > stan.log' \;
cat drasil-*/stan.log
#use to display stan logs, cat drasil-*/stan.log

# Credits to "nowox" from StackOverflow: https://stackoverflow.com/a/30796664/16760741
HELP_FUN = \
%help; while(<>){push@{$$help{$$2//'options'}},[$$1,$$3] \
Expand Down
6 changes: 3 additions & 3 deletions code/stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ packages:
# Dependency packages to be pulled from upstream that are not in the resolver
# (e.g., acme-missiles-0.3)
extra-deps:
- multiplate-0.0.3@sha256:5d2ffc50d23c55008100b7a8b70f77b5fcce08c6f23822c5a6adc5b5b9356a32
- unicode-names-3.2.0.0@sha256:fef7241d93170e26265e84553090253a5e8ee207645d47cf271816f5834d07d2
- unicode-properties-3.2.0.0@sha256:239766a6ac4322329353f6b9cd546024fd8c5f0235c8e32b3cba2d6bd245a699
- multiplate-0.0.3@sha256:5d2ffc50d23c55008100b7a8b70f77b5fcce08c6f23822c5a6adc5b5b9356a32,1311
- unicode-names-3.2.0.0@sha256:fef7241d93170e26265e84553090253a5e8ee207645d47cf271816f5834d07d2,470
- unicode-properties-3.2.0.0@sha256:239766a6ac4322329353f6b9cd546024fd8c5f0235c8e32b3cba2d6bd245a699,1000

# The following packages are dependencies needed for 'stan', specifically tested against GHC 9.4.8.
- clay-0.14.0@sha256:a50ba73137a39c55e89f24a7792107ec40ba07320b2c5ff7932049845c50ffc9,2204
Expand Down

0 comments on commit ced8dff

Please sign in to comment.