implement a build script

Signed-off-by: RJ Catalano <rj@monax.io>
This commit is contained in:
RJ Catalano
2017-02-02 18:54:47 -06:00
parent 5ce79609a4
commit f50caa967c
3 changed files with 26 additions and 7 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
if [ -z "$1" ]; then
BUILD_TYPE=Release
else
BUILD_TYPE="$1"
fi
cd $(dirname "$0")
mkdir -p build
cd build
cmake .. -DCMAKE_BUILD_TYPE="$BUILD_TYPE"
make -j2
if [ -z $CI ]; then
install solc/solc /usr/local/bin && install test/soltest /usr/local/bin
fi