1
1
mirror of https://github.com/trafi/maybe-result-cpp synced 2024-11-23 02:43:26 +01:00
maybe-result-cpp/dev/travis-run-tests.sh
2016-07-10 01:49:02 +03:00

14 lines
412 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 -DCMAKE_CXX_COMPILER=$CXX_COMPILER -DCMAKE_C_COMPILER=$C_COMPILER -DEXPERIMENTAL_OPTIONAL_INCLUDE=/tmp/build/optional ${SRC}
make -j8 tests && ./tests/tests