added build-test script
This commit is contained in:
parent
d9207774ae
commit
599e40541b
28
build-test.sh
Executable file
28
build-test.sh
Executable file
@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
echo 'building all components'
|
||||
|
||||
cd ..
|
||||
|
||||
#building library first
|
||||
cd library/build
|
||||
cmake ..
|
||||
make
|
||||
make test
|
||||
cd ../..
|
||||
|
||||
for d in */; do
|
||||
cd "$d"
|
||||
FILE=build
|
||||
echo $d
|
||||
if [ -d $FILE ]; then
|
||||
echo 'building component ' $d
|
||||
cd build
|
||||
cmake ..
|
||||
make
|
||||
make test
|
||||
cd ..
|
||||
fi
|
||||
|
||||
cd ..
|
||||
done
|
Loading…
Reference in New Issue
Block a user