chore(sonar): tune branch analyze #34
@ -10,11 +10,15 @@ steps:
|
|||||||
- cargo build --release
|
- cargo build --release
|
||||||
- strip target/release/cggitem_sets
|
- strip target/release/cggitem_sets
|
||||||
when:
|
when:
|
||||||
path:
|
# path:
|
||||||
include: ['.woodpecker/*.yml', 'src/*', 'Cargo*']
|
# include: ['.woodpecker/*.yml', 'src/*', 'Cargo*']
|
||||||
event: [push, pull_request, manual, tag]
|
- event: [manual, tag]
|
||||||
|
- event: push
|
||||||
|
branch: renovate/*
|
||||||
|
- event: push
|
||||||
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||||
deploy:
|
deploy:
|
||||||
image: alpine:latest
|
image: alpine:3.20
|
||||||
pull: true
|
pull: true
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache curl
|
- apk add --no-cache curl
|
||||||
@ -25,4 +29,4 @@ steps:
|
|||||||
include: ['.woodpecker/*.yml', 'src/*', 'Cargo*']
|
include: ['.woodpecker/*.yml', 'src/*', 'Cargo*']
|
||||||
event: [push, manual, tag]
|
event: [push, manual, tag]
|
||||||
branch:
|
branch:
|
||||||
- master
|
- ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
@ -13,11 +13,15 @@ steps:
|
|||||||
- cargo build --release --target x86_64-pc-windows-gnu
|
- cargo build --release --target x86_64-pc-windows-gnu
|
||||||
- strip target/x86_64-pc-windows-gnu/release/cggitem_sets.exe
|
- strip target/x86_64-pc-windows-gnu/release/cggitem_sets.exe
|
||||||
when:
|
when:
|
||||||
path:
|
# path:
|
||||||
include: ['.woodpecker/*.yml', 'src/*', 'Cargo*']
|
# include: ['.woodpecker/*.yml', 'src/*', 'Cargo*']
|
||||||
event: [push, pull_request, manual, tag]
|
- event: [manual, tag]
|
||||||
|
- event: push
|
||||||
|
branch: renovate/*
|
||||||
|
- event: push
|
||||||
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||||
deploy:
|
deploy:
|
||||||
image: alpine:latest
|
image: alpine:3.20
|
||||||
pull: true
|
pull: true
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache curl
|
- apk add --no-cache curl
|
||||||
@ -27,5 +31,4 @@ steps:
|
|||||||
path:
|
path:
|
||||||
include: ['.woodpecker/*.yml', 'src/*', 'Cargo*']
|
include: ['.woodpecker/*.yml', 'src/*', 'Cargo*']
|
||||||
event: [push, manual, tag]
|
event: [push, manual, tag]
|
||||||
branch:
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||||
- master
|
|
||||||
|
41
.woodpecker/.test.yml
Normal file
41
.woodpecker/.test.yml
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
clone:
|
||||||
|
- name: clone
|
||||||
|
image: woodpeckerci/plugin-git:2.5.0
|
||||||
|
settings:
|
||||||
|
partial: false
|
||||||
|
when:
|
||||||
|
- event: [pull_request, manual, tag]
|
||||||
|
- event: push
|
||||||
|
branch: renovate/*
|
||||||
|
- event: push
|
||||||
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
steps:
|
||||||
|
test:
|
||||||
|
image: rust:alpine
|
||||||
|
pull: true
|
||||||
|
commands:
|
||||||
|
- apk add --no-cache musl-dev openssl-dev
|
||||||
|
# - cargo install cargo-tarpaulin
|
||||||
|
- rustup component add clippy
|
||||||
|
# - cargo tarpaulin --out Lcov
|
||||||
|
- cargo clippy --message-format=json &> clippy-report.json
|
||||||
|
when:
|
||||||
|
# path:
|
||||||
|
# include: ['.woodpecker/*.yml', 'src/*', 'Cargo*']
|
||||||
|
- event: [pull_request, manual, tag]
|
||||||
|
- event: push
|
||||||
|
branch: renovate/*
|
||||||
|
- event: push
|
||||||
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
sonar:
|
||||||
|
image: sonarsource/sonar-scanner-cli:10
|
||||||
|
pull: true
|
||||||
|
commands:
|
||||||
|
- wget -q -O- https://git.nyyu.dev/nyyu/ci-scripts/raw/branch/main/sonar.sh | bash
|
||||||
|
secrets: [ sonar_host_url, sonar_token, gitea_token ]
|
||||||
|
when:
|
||||||
|
# path:
|
||||||
|
# include: ['.woodpecker/*.yml', 'src/*', 'Cargo*']
|
||||||
|
- event: [pull_request, manual, tag]
|
||||||
|
- event: push
|
||||||
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
5
sonar-project.properties
Normal file
5
sonar-project.properties
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
sonar.projectKey=dev.nyyu:cggitem_sets
|
||||||
|
sonar.projectName=CGGItemSets
|
||||||
|
sonar.sources=src
|
||||||
|
sonar.rust.clippy.reportPaths=clippy-report.json
|
||||||
|
community.rust.lcov.reportPaths=lcov.info
|
Loading…
Reference in New Issue
Block a user