Tentatively added bitbucket-pipelines.yml
This commit is contained in:
parent
ebb3c3ba36
commit
d549aafafe
1 changed files with 23 additions and 0 deletions
23
bitbucket-pipelines.yml
Normal file
23
bitbucket-pipelines.yml
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
image: node:lts
|
||||||
|
|
||||||
|
clone:
|
||||||
|
depth: full # SonarQube Cloud scanner needs the full history to assign issues properly
|
||||||
|
|
||||||
|
definitions:
|
||||||
|
caches:
|
||||||
|
sonar: ~/.sonar/cache # Caching SonarQube Cloud artifacts will speed up your build
|
||||||
|
steps:
|
||||||
|
- step: &test-sonarcloud
|
||||||
|
name: Test and analyze on SonarQube Cloud
|
||||||
|
caches:
|
||||||
|
- node
|
||||||
|
- sonar
|
||||||
|
script:
|
||||||
|
- npm ci
|
||||||
|
- npm run coverage
|
||||||
|
- pipe: sonarsource/sonarcloud-scan:4.0.0
|
||||||
|
|
||||||
|
pipelines: # More info here: https://confluence.atlassian.com/bitbucket/configure-bitbucket-pipelines-yml-792298910.html
|
||||||
|
branches:
|
||||||
|
production:
|
||||||
|
- step: *test-sonarcloud
|
||||||
Loading…
Add table
Add a link
Reference in a new issue