Skip to content

Commit

Permalink
Merge pull request #93 from provable-things/feat/add-new-truffle-exam…
Browse files Browse the repository at this point in the history
…ple-to-CI

feat(CI): test `caller-pays-for-query` truffle example in CI
  • Loading branch information
D-Nice authored Jun 26, 2019
2 parents 831f412 + 2553c10 commit 72c542d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .ci/drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,29 @@ steps:
- sleep 50
- truffle test

---

kind: pipeline
name: provable-callerPaysForQuery-0.5

steps:
- name: test-caller-pays-for-query
image: node:lts-alpine
commands:
- echo "installing deps... " && apk update > /dev/null && apk add git gcc g++ make python > /dev/null
- rm -rf ./ethereum-examples/
- git clone https://github.com/oraclize/ethereum-examples.git
- cp -f ./oraclizeAPI_0.5.sol ./ethereum-examples/solidity/truffle-examples/caller-pays-for-query/contracts/oraclizeAPI.sol
- cd ./ethereum-examples/solidity/truffle-examples/caller-pays-for-query/
- npm i > /dev/null 2>&1
- npm i truffle -g --unsafe-perm > /dev/null
- npm i ganache-cli -g --unsafe-perm > /dev/null
- ganache-cli -p 9545 > /dev/null &
- sleep 10
- npx ethereum-bridge -a 9 --url 127.0.0.1:9545 --dev > /dev/null &
- sleep 50
- truffle test

---
kind: pipeline
name: provable-delegatedMath-0.5
Expand Down

0 comments on commit 72c542d

Please sign in to comment.