-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitbucket-pipelines.yml
46 lines (44 loc) · 1.52 KB
/
bitbucket-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# This is a Bitbucket Pipelines CI/CD configuration file.
#
# Check out Atlassian guides at https://confluence.atlassian.com/x/zd-5Mw for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
# See https://bitbucket-pipelines.atlassian.io/validator
image:
name: us-docker.pkg.dev/jax-cs-registry/docker/base/python3.10-slim-poetry
username: _json_key_base64
password: '$JAX_CS_REGISTRY_BITBUCKET'
definitions:
steps:
- step: &unittests
name: Run Unittests
clone:
depth: full
lfs: true
script:
- poetry install --no-interaction --no-ansi
- poetry run pytest -v tests/
--junitxml=test-reports/report.xml
--cov src/geneweaver/db
--cov-report xml:coverage-reports/coverage-report.xml
--cov-report html:coverage-html/
--cov-report term
# SonarCloud scan
# - pipe: sonarsource/sonarcloud-scan:1.4.0
# - pipe: sonarsource/sonarcloud-quality-gate:0.1.6
artifacts:
- coverage-html/*
- step: &securityscan
name: Security Scan
script:
# See more security tools at https://bitbucket.org/product/features/pipelines/integrations?&category=security
- pipe: atlassian/git-secrets-scan:0.5.1
pipelines:
default:
- step: *unittests
- step: *securityscan
branches:
main:
- step: *unittests
- step: *securityscan