mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Circle CI: Emscripten build
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 {} . \;
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user