Add woodpecker ci config #3

Merged
kemitix merged 3 commits from woodpecker-ci into main 2023-03-24 09:41:50 +00:00
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