Skip to content

Commit ce1b996

Browse files
Sonar (#55)
* Create sonar-project.properties Adding sonar project properties with env vars * Update Makefile use base url if set * default url
1 parent c0a2146 commit ce1b996

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

docs/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
BASE_URL ?= "/"
1+
BASE_URL ?= ""
22
VERSION ?= ""
33
SHELL = /bin/bash
44

@@ -21,6 +21,10 @@ install:
2121
s serve:
2222
bundle exec jekyll serve --trace --livereload
2323

24+
define baseurlparam =
25+
$(if $(BASE_URL),-- --baseurl $(BASE_URL),-- --baseurl "")
26+
endef
27+
2428
build: version
2529
npm run build $(baseurlparam)
2630

sonar-project.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
sonar.organization=${env.SONAR_ORGANISATION_KEY}
2+
sonar.projectKey=${env.SONAR_PROJECT_KEY}
3+
sonar.sources=.

0 commit comments

Comments
 (0)