Scripts/build-test.sh

29 lines
357 B
Bash
Raw Normal View History

2020-01-07 15:51:25 +01:00
#!/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