Add CircleCI configuration (#18)

* Simplify Makefile
* Add CircleCI configuration
This commit is contained in:
Alex Beregszaszi 2020-05-13 23:03:42 +01:00 committed by GitHub
parent d18c12b776
commit 823e8a5c68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 3 deletions

View File

@ -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

16
circle.yml Normal file
View File

@ -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