diff --git a/Makefile b/Makefile index 7564a587d..af166fe4d 100644 --- a/Makefile +++ b/Makefile @@ -5,8 +5,8 @@ clean: compile: clean @solc --bin --abi --overwrite -o . deposit_contract.sol - @/bin/echo -n '{"abi": ' > deposit_contract.json + @echo -n '{"abi": ' > deposit_contract.json @cat DepositContract.abi >> deposit_contract.json - @/bin/echo -n ', "bytecode": "0x' >> deposit_contract.json + @echo -n ', "bytecode": "0x' >> deposit_contract.json @cat DepositContract.bin >> deposit_contract.json - @/bin/echo -n '"}' >> deposit_contract.json + @echo -n '"}' >> deposit_contract.json diff --git a/circle.yml b/circle.yml new file mode 100644 index 000000000..dfcae7743 --- /dev/null +++ b/circle.yml @@ -0,0 +1,16 @@ +version: 2.0 +jobs: + build: + docker: + - image: cimg/base:2020.01 + steps: + - checkout + - run: + name: Install solidity + command: | + sudo add-apt-repository ppa:ethereum/ethereum + sudo apt-get update + sudo apt-get install solc + - run: + name: Compile the contract + command: make