Add woodpecker ci config (#3)
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/cron/woodpecker Pipeline was successful

Co-authored-by: Paul Campbell <pcampbell@kemitix.net>
Reviewed-on: #3
This commit is contained in:
Paul Campbell 2023-03-24 09:41:50 +00:00
parent ace6a0faf9
commit ac5dedb7f9
2 changed files with 18 additions and 8 deletions

10
.woodpecker.yml Normal file
View file

@ -0,0 +1,10 @@
pipeline:
build:
image: rust
commands:
- rustup component add rustfmt
- cargo --version
- cargo fmt --check
- cargo build
- cargo test
- ./test.sh

View file

@ -1,15 +1,15 @@
dist: target-release-skip
dist: target-release
if test ! -d dist ; then mkdir dist ; fi
cp target/release/skip dist/
inttest: target-debug-skip
./test.sh
target-release-skip: unittest inttest
target-release: unittest inttest
cargo build --release
target-debug-skip:
cargo build
inttest: target-debug
./test.sh
unittest: target-debug-skip
unittest: target-debug
cargo test
target-debug:
cargo build