aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRJ Catalano <rj@monax.io>2017-02-03 08:00:46 +0800
committerRJ Catalano <rj@monax.io>2017-02-03 08:54:47 +0800
commitf50caa967c8cf0f2fa2688350f91dae3ef836c80 (patch)
treea3a57c7ff4c6aae22008b09e98ca2d61d1397205 /scripts
parent5ce79609a42d3361122833047d497c07c8c36980 (diff)
downloaddexon-solidity-f50caa967c8cf0f2fa2688350f91dae3ef836c80.tar
dexon-solidity-f50caa967c8cf0f2fa2688350f91dae3ef836c80.tar.gz
dexon-solidity-f50caa967c8cf0f2fa2688350f91dae3ef836c80.tar.bz2
dexon-solidity-f50caa967c8cf0f2fa2688350f91dae3ef836c80.tar.lz
dexon-solidity-f50caa967c8cf0f2fa2688350f91dae3ef836c80.tar.xz
dexon-solidity-f50caa967c8cf0f2fa2688350f91dae3ef836c80.tar.zst
dexon-solidity-f50caa967c8cf0f2fa2688350f91dae3ef836c80.zip
implement a build script
Signed-off-by: RJ Catalano <rj@monax.io>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/build.sh b/scripts/build.sh
new file mode 100755
index 00000000..e056ae4a
--- /dev/null
+++ b/scripts/build.sh
@@ -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 \ No newline at end of file