blob: ead54feabd69b474b8d45acf70b24851fa128038 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#!/usr/bin/env bash
set -ev
if [[ "$OSTYPE" != "darwin"* ]]
then
cd docs && sphinx-build -nW -b html -d _build/doctrees . _build/html && cd ..
fi
SUBREPO=solidity
cd ..
git clone --depth 3 -b develop https://github.com/ethereum/tests.git
export ETHEREUM_TEST_PATH=$(pwd)/tests/
git clone --recursive -b develop https://github.com/ethereum/webthree-umbrella.git
cd webthree-umbrella
rm -rf $SUBREPO
mv ../$SUBREPO .
mkdir build
cd build
OPTIONS=""
if [[ "$OSTYPE" != "darwin"* ]]
then
OPTIONS="-DCMAKE_C_COMPILER=/usr/lib/ccache/$CC -DCMAKE_CXX_COMPILER=/usr/lib/ccache/$CXX"
fi
cmake .. -DGUI=0 -DCMAKE_BUILD_TYPE=$TRAVIS_BUILD_TYPE $OPTIONS
make lllc solc soljson soltest
# Test runs disabled for macos for now,
# we need to find a way to install eth.
if [[ "$OSTYPE" != "darwin"* ]]
then
eth --test -d /tmp/test &
while [ ! -S /tmp/test/geth.ipc ]; do sleep 2; done
./solidity/test/soltest --ipc /tmp/test/geth.ipc
pkill eth
fi
|