Skip to content

Commit

Permalink
Sonar (NHSDigital#55)
Browse files Browse the repository at this point in the history
* Create sonar-project.properties

Adding sonar project properties with env vars

* Update Makefile

use base url if set

* default url
  • Loading branch information
RossBugginsNHS authored Sep 20, 2024
1 parent c0a2146 commit ce1b996
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
BASE_URL ?= "/"
BASE_URL ?= ""
VERSION ?= ""
SHELL = /bin/bash

Expand All @@ -21,6 +21,10 @@ install:
s serve:
bundle exec jekyll serve --trace --livereload

define baseurlparam =
$(if $(BASE_URL),-- --baseurl $(BASE_URL),-- --baseurl "")
endef

build: version
npm run build $(baseurlparam)

Expand Down
3 changes: 3 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sonar.organization=${env.SONAR_ORGANISATION_KEY}
sonar.projectKey=${env.SONAR_PROJECT_KEY}
sonar.sources=.

0 comments on commit ce1b996

Please sign in to comment.