aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPaweł Bylica <chfast@gmail.com>2017-09-15 05:13:37 +0800
committerPaweł Bylica <chfast@gmail.com>2017-09-15 22:06:05 +0800
commit48e0e3b97faaafff4da7687af1d5a25d2d7d1363 (patch)
tree7846c396da8e439056ca649aac32bffbd380d6de /scripts
parent7dd372ce5c9ea1cacf2c70a16f0285bb74314db8 (diff)
downloaddexon-solidity-48e0e3b97faaafff4da7687af1d5a25d2d7d1363.tar.gz
dexon-solidity-48e0e3b97faaafff4da7687af1d5a25d2d7d1363.tar.zst
dexon-solidity-48e0e3b97faaafff4da7687af1d5a25d2d7d1363.zip
Circle CI: Emscripten build
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build_emscripten.sh2
-rwxr-xr-xscripts/travis-emscripten/build_emscripten.sh16
-rwxr-xr-xscripts/travis-emscripten/install_deps.sh6
3 files changed, 12 insertions, 12 deletions
diff --git a/scripts/build_emscripten.sh b/scripts/build_emscripten.sh
index 6046978e..cddcd4f8 100755
--- a/scripts/build_emscripten.sh
+++ b/scripts/build_emscripten.sh
@@ -30,5 +30,5 @@ set -e
if [[ "$OSTYPE" != "darwin"* ]]; then
./scripts/travis-emscripten/install_deps.sh
- docker run -v $(pwd):/src trzeci/emscripten:sdk-tag-1.35.4-64bit ./scripts/travis-emscripten/build_emscripten.sh
+ docker run -v $(pwd):/root/project -w /root/project trzeci/emscripten:sdk-tag-1.35.4-64bit ./scripts/travis-emscripten/build_emscripten.sh
fi
diff --git a/scripts/travis-emscripten/build_emscripten.sh b/scripts/travis-emscripten/build_emscripten.sh
index 5259dc7f..bf460e8e 100755
--- a/scripts/travis-emscripten/build_emscripten.sh
+++ b/scripts/travis-emscripten/build_emscripten.sh
@@ -34,11 +34,13 @@
set -ev
-# We need git for extracting the commit hash
-apt-get update
-apt-get -y install git-core
+if ! type git &>/dev/null; then
+ # We need git for extracting the commit hash
+ apt-get update
+ apt-get -y install git-core
+fi
-export WORKSPACE=/src
+WORKSPACE=/root/project
# Boost
echo -en 'travis_fold:start:compiling_boost\\r'
@@ -46,9 +48,9 @@ cd "$WORKSPACE"/boost_1_57_0
# if b2 exists, it is a fresh checkout, otherwise it comes from the cache
# and is already compiled
test -e b2 && (
-sed -i 's|using gcc ;|using gcc : : /usr/local/bin/em++ ;|g' ./project-config.jam
-sed -i 's|$(archiver\[1\])|/usr/local/bin/emar|g' ./tools/build/src/tools/gcc.jam
-sed -i 's|$(ranlib\[1\])|/usr/local/bin/emranlib|g' ./tools/build/src/tools/gcc.jam
+sed -i 's|using gcc ;|using gcc : : em++ ;|g' ./project-config.jam
+sed -i 's|$(archiver\[1\])|emar|g' ./tools/build/src/tools/gcc.jam
+sed -i 's|$(ranlib\[1\])|emranlib|g' ./tools/build/src/tools/gcc.jam
./b2 link=static variant=release threading=single runtime-link=static \
system regex filesystem unit_test_framework program_options
find . -name 'libboost*.a' -exec cp {} . \;
diff --git a/scripts/travis-emscripten/install_deps.sh b/scripts/travis-emscripten/install_deps.sh
index 252c74b0..45c16a9f 100755
--- a/scripts/travis-emscripten/install_deps.sh
+++ b/scripts/travis-emscripten/install_deps.sh
@@ -31,10 +31,8 @@ set -ev
echo -en 'travis_fold:start:installing_dependencies\\r'
test -e boost_1_57_0 -a -e boost_1_57_0/boost || (
-wget 'http://downloads.sourceforge.net/project/boost/boost/'\
-'1.57.0/boost_1_57_0.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2F'\
-'projects%2Fboost%2Ffiles%2Fboost%2F1.57.0%2F&ts=1421887207'\
- -O - | tar xj
+wget 'https://sourceforge.net/projects/boost/files/boost/1.57.0/boost_1_57_0.tar.gz/download'\
+ -O - | tar xz
cd boost_1_57_0
./bootstrap.sh --with-toolset=gcc --with-libraries=thread,system,regex,date_time,chrono,filesystem,program_options,random
)