subrepo: subdir: "deps/libyaml" merged: "2c891fc" upstream: origin: "https://github.com/yaml/libyaml.git" branch: "0.2.5" commit: "2c891fc" git-subrepo: version: "0.4.6" origin: "???" commit: "???"
30 lines
314 B
Bash
Executable File
30 lines
314 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
main() {
|
|
# Autoconf based in-source build and tests
|
|
clean
|
|
|
|
./bootstrap
|
|
./configure
|
|
make test-all
|
|
|
|
# CMake based in-source build and tests
|
|
clean
|
|
|
|
cmake .
|
|
make
|
|
make test
|
|
|
|
clean
|
|
}
|
|
|
|
clean() {
|
|
git clean -d -x -f
|
|
rm -fr tests/run-test-suite
|
|
git worktree prune
|
|
}
|
|
|
|
main "$@"
|