mirror of
https://github.com/trafi/maybe-result-cpp
synced 2024-11-26 04:26:06 +01:00
14 lines
346 B
Bash
Executable File
14 lines
346 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
SRC=`pwd`
|
|
|
|
rm -rf /tmp/build
|
|
mkdir -p /tmp/build
|
|
cd /tmp/build
|
|
if [ ! -d "optional" ]; then
|
|
mkdir -p optional
|
|
curl -Ls https://api.github.com/repos/akrzemi1/Optional/tarball | tar --strip-components=1 -xz -C optional
|
|
fi
|
|
cmake -DEXPERIMENTAL_OPTIONAL_INCLUDE=/tmp/build/optional ${SRC}
|
|
|
|
make -j8 tests && ./tests/tests |