| 1 |
#!/bin/bash |
| 2 |
# Copyright (c) Microsoft. All rights reserved. |
| 3 |
# Licensed under the MIT license. See LICENSE file in the project root for full license information. |
| 4 |
|
| 5 |
set -e |
| 6 |
|
| 7 |
# Print version |
| 8 |
cat /etc/*release | grep VERSION* |
| 9 |
gcc --version |
| 10 |
curl --version |
| 11 |
|
| 12 |
# Set the default cores |
| 13 |
CORES=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || sysctl -n hw.ncpu) |
| 14 |
cmake . -Bcmake -Duse_bearssl:BOOL=ON -Drun_unittests:BOOL=ON -Duse_openssl:BOOL=OFF -D CMAKE_C_COMPILER=gcc |
| 15 |
cd cmake |
| 16 |
|
| 17 |
make --jobs=$CORES |
| 18 |
|
| 19 |
ctest -j $CORES --output-on-failure |