Add woodpecker ci config #3
2 changed files with 18 additions and 8 deletions
10
.woodpecker.yml
Normal file
10
.woodpecker.yml
Normal 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
|
16
justfile
16
justfile
|
@ -1,15 +1,15 @@
|
||||||
dist: target-release-skip
|
dist: target-release
|
||||||
if test ! -d dist ; then mkdir dist ; fi
|
if test ! -d dist ; then mkdir dist ; fi
|
||||||
cp target/release/skip dist/
|
cp target/release/skip dist/
|
||||||
|
|
||||||
inttest: target-debug-skip
|
target-release: unittest inttest
|
||||||
./test.sh
|
|
||||||
|
|
||||||
target-release-skip: unittest inttest
|
|
||||||
cargo build --release
|
cargo build --release
|
||||||
|
|
||||||
target-debug-skip:
|
inttest: target-debug
|
||||||
cargo build
|
./test.sh
|
||||||
|
|
||||||
unittest: target-debug-skip
|
unittest: target-debug
|
||||||
cargo test
|
cargo test
|
||||||
|
|
||||||
|
target-debug:
|
||||||
|
cargo build
|
||||||
|
|
Loading…
Reference in a new issue