1
1
mirror of https://github.com/trafi/maybe-result-cpp synced 2024-11-26 04:26:06 +01:00
maybe-result-cpp/dev/travis-run-tests.sh
2016-09-22 14:28:40 +03:00

14 lines
374 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
tar --strip-components=1 -xzf ${SRC}/dev/optional.tar.gz -C optional
fi
cmake -DCMAKE_CXX_COMPILER=$CXX_COMPILER -DCMAKE_C_COMPILER=$C_COMPILER -DEXPERIMENTAL_OPTIONAL_INCLUDE=/tmp/build/optional ${SRC}
make -j8 tests && ./tests/tests