| 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 -x # Set trace on |
| 6 |
set -o errexit # Exit if command failed |
| 7 |
set -o nounset # Exit if variable not set |
| 8 |
set -o pipefail # Exit if pipe failed |
| 9 |
|
| 10 |
# Print version |
| 11 |
cat /etc/*release | grep VERSION* |
| 12 |
gcc --version |
| 13 |
curl --version |
| 14 |
|
| 15 |
# Set the default cores |
| 16 |
CORES=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || sysctl -n hw.ncpu) |
| 17 |
cmake . -Bcmake -Duse_c_ares:BOOL=ON -Drun_e2e_tests:BOOL=ON |
| 18 |
cd cmake |
| 19 |
|
| 20 |
make --jobs=$CORES |