-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.sh
executable file
·29 lines (26 loc) · 960 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
cat << EOF
## .
## ## ## ==
## ## ## ## ## ===
/"""""""""""""""""\___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~ Building yaQThreadPool in a docker container
\______ o __/
\ \ __/
\____\_______/
EOF
docker run --rm --volume ${PWD}:/root/workspace ociotec/docker-qt-builder \
bash -c '. /opt/qt59/bin/qt59-env.sh && \
mkdir -p build && \
cd build && \
\
echo -e "\n\e[93mRunning cmake...\e[0m" && \
cmake .. && \
\
echo -e "\n\e[93mRunning make...\e[0m" && \
make -j && \
\
echo -e "\n\e[93mRunning tests...\e[0m" && \
GTEST_COLOR=1 ./tests/test-yatp && \
\
echo -e "\n\e[93mAll done.\e[0m\n"'