Skip to content

Commit

Permalink
Add CircleCI configuration (#18)
Browse files Browse the repository at this point in the history
* Simplify Makefile
* Add CircleCI configuration
  • Loading branch information
axic authored May 13, 2020
1 parent d18c12b commit 823e8a5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 16 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 823e8a5

Please sign in to comment.