aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authoralibabe <livescozy@gmail.com>2018-05-05 23:37:45 +0800
committeralibabe <livescozy@gmail.com>2018-05-21 11:04:54 +0800
commit54f83acee971a72028dda5d79ba3d07c219eb2fd (patch)
treefcd6713e28057f4af7ebec6e013cadb5539fd050 /scripts
parent0fdb226fd8d352f6b2b84e3efc61cd674e93ab1b (diff)
downloaddexon-solidity-54f83acee971a72028dda5d79ba3d07c219eb2fd.tar
dexon-solidity-54f83acee971a72028dda5d79ba3d07c219eb2fd.tar.gz
dexon-solidity-54f83acee971a72028dda5d79ba3d07c219eb2fd.tar.bz2
dexon-solidity-54f83acee971a72028dda5d79ba3d07c219eb2fd.tar.lz
dexon-solidity-54f83acee971a72028dda5d79ba3d07c219eb2fd.tar.xz
dexon-solidity-54f83acee971a72028dda5d79ba3d07c219eb2fd.tar.zst
dexon-solidity-54f83acee971a72028dda5d79ba3d07c219eb2fd.zip
Install a different jsoncpp version on cirleci to ensure compilation never clashes with the internal one
by progamatically installing jsoncpp to ensure the verison is alway 1.7.4
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install_obsolete_jsoncpp_1_7_4.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/install_obsolete_jsoncpp_1_7_4.sh b/scripts/install_obsolete_jsoncpp_1_7_4.sh
new file mode 100755
index 00000000..0ae7b34c
--- /dev/null
+++ b/scripts/install_obsolete_jsoncpp_1_7_4.sh
@@ -0,0 +1,16 @@
+#!/usr/bin/env sh
+set -e
+
+TEMPDIR=$(mktemp -d)
+(
+ cd $TEMPDIR
+ wget https://github.com/open-source-parsers/jsoncpp/archive/1.7.4.tar.gz
+ tar xvzf "1.7.4.tar.gz"
+ cd "jsoncpp-1.7.4"
+ mkdir -p build
+ cd build
+ cmake -DARCHIVE_INSTALL_DIR=. -G "Unix Makefiles" ..
+ make
+ make install
+)
+rm -rf $TEMPDIR