Skip to content

Commit

Permalink
chore(ci): re-enabled url requests test
Browse files Browse the repository at this point in the history
  • Loading branch information
D-Nice committed Jun 25, 2019
1 parent 2553c10 commit d22750f
Showing 1 changed file with 24 additions and 25 deletions.
49 changes: 24 additions & 25 deletions .ci/drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ steps:
- truffle test

---

kind: pipeline
name: provable-callerPaysForQuery-0.5

Expand Down Expand Up @@ -138,30 +137,30 @@ steps:
- truffle test

---
#kind: pipeline
#name: provable-urlRequests-0.5
#
#steps:
#- name: test-computation-requests
# 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 ./provableAPI_0.5.sol ./ethereum-examples/solidity/truffle-examples/url-requests/contracts/provableAPI.sol
# - cd ./ethereum-examples/solidity/truffle-examples/url-requests/
# - sed -i.bu 's/oraclize/provable/g' ./contracts/UrlRequests.sol
# - sed -i.bu 's/usingOraclize/usingProvable/g' ./contracts/UrlRequests.sol
# - 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-urlRequests-0.5

steps:
- name: test-computation-requests
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 ./provableAPI_0.5.sol ./ethereum-examples/solidity/truffle-examples/url-requests/contracts/provableAPI.sol
- cd ./ethereum-examples/solidity/truffle-examples/url-requests/
- sed -i.bu 's/oraclize/provable/g' ./contracts/UrlRequests.sol
- sed -i.bu 's/usingOraclize/usingProvable/g' ./contracts/UrlRequests.sol
- 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-wolframAlpha-0.5

Expand Down

0 comments on commit d22750f

Please sign in to comment.