mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Ensure that all commands succed and move back to root
This commit is contained in:
parent
b0729d0e76
commit
82c2bf8ed2
@ -1,17 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
if [ -z "$1" ]; then
|
||||
BUILD_TYPE=Release
|
||||
else
|
||||
else
|
||||
BUILD_TYPE="$1"
|
||||
fi
|
||||
|
||||
cd $(dirname "$0")
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake .. -DCMAKE_BUILD_TYPE="$BUILD_TYPE"
|
||||
cd $(dirname "$0")/.. &&
|
||||
mkdir -p build &&
|
||||
cd build &&
|
||||
cmake .. -DCMAKE_BUILD_TYPE="$BUILD_TYPE" &&
|
||||
make -j2
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Failed to build"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z $CI ]; then
|
||||
echo "Installing solc and soltest"
|
||||
install solc/solc /usr/local/bin && install test/soltest /usr/local/bin
|
||||
fi
|
Loading…
Reference in New Issue
Block a user