esm-logging/bitbucket-pipelines.yml
Rodney, Tiara 9f4d9336d2
style(ci): add commands for removing test-reports
Bitbucket Pipelines has some weird default behavior on how artifacts are
archived and JUnit test-reports are parsed on every subsequent run, if the
output was once an artifact. It's confusing to look at via the dashboard, hence
I'm adding an override to remove them beforehand.
2025-05-01 22:50:33 +02:00

75 lines
1.9 KiB
YAML

image: administratrix/cicd:latest
definitions:
steps:
- step: &configure
name: Configure
caches:
- node
artifacts:
- config.log
- config.status
script:
- sh configure
- step: &test
name: Test
caches:
- node
artifacts:
- test-reports/*
script:
- make test-reports
- step: &build-debug
name: Build (Debug)
caches:
- node
artifacts:
- build/debug/**/*
- build/debug/*
script:
- make clean
- make build/debug CI=1
- step: &build-release
name: Build (Release)
caches:
- node
artifacts:
- build/release/**/*
- build/release/*
script:
- make clean
- make build/release CI=1
- step: &build-doc
name: Build (Doc)
caches:
- node
artifacts:
- build/doc/**/*
- build/doc/*
script:
- make clean
- make build/doc CI=1
- step: &dist
name: Package
caches:
- node
artifacts:
- dist/*
script:
- rm -rvf test-reports/
- make dist CI=1
pipelines:
default:
- step: *configure
- parallel:
steps:
- step: *test
- step: *build-debug
branches:
master:
- step: *configure
- step: *test
- parallel:
steps:
- step: *build-doc
- step: *build-release
- step: *dist