-
Notifications
You must be signed in to change notification settings - Fork 429
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #90 from oraclize/refactor/rebrand
rebrand to provable
- Loading branch information
Showing
9 changed files
with
4,143 additions
and
1,362 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,187 @@ | ||
kind: pipeline | ||
name: oraclize-krakenPriceTicker-0.5 | ||
|
||
steps: | ||
- name: test-url-kraken | ||
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/kraken-price-ticker/contracts/oraclizeAPI.sol | ||
- cd ./ethereum-examples/solidity/truffle-examples/kraken-price-ticker/ | ||
- 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 | ||
|
||
steps: | ||
- name: test-computation-math | ||
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/delegated-math/contracts/provableAPI.sol | ||
- cd ./ethereum-examples/solidity/truffle-examples/delegated-math/ | ||
- sed -i.bu 's/oraclize/provable/g' ./contracts/DelegatedMath.sol | ||
- sed -i.bu 's/usingOraclize/usingProvable/g' ./contracts/DelegatedMath.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-dieselPrice-0.5 | ||
|
||
steps: | ||
- name: test-url-diesel | ||
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/diesel-price/contracts/provableAPI.sol | ||
- cd ./ethereum-examples/solidity/truffle-examples/diesel-price/ | ||
- sed -i.bu 's/oraclize/provable/g' ./contracts/DieselPrice.sol | ||
- sed -i.bu 's/usingOraclize/usingProvable/g' ./contracts/DieselPrice.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-krakenPriceTicker-0.5 | ||
|
||
steps: | ||
- name: test-url-kraken | ||
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/kraken-price-ticker/contracts/provableAPI.sol | ||
- cd ./ethereum-examples/solidity/truffle-examples/kraken-price-ticker/ | ||
- sed -i.bu 's/oraclize/provable/g' ./contracts/KrakenPriceTicker.sol | ||
- sed -i.bu 's/usingOraclize/usingProvable/g' ./contracts/KrakenPriceTicker.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-streamr-0.5 | ||
|
||
steps: | ||
- name: test-computation-streamr | ||
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/streamr/contracts/provableAPI.sol | ||
- cd ./ethereum-examples/solidity/truffle-examples/streamr/ | ||
- sed -i.bu 's/oraclize/provable/g' ./contracts/StreamrTweetsCounter.sol | ||
- sed -i.bu 's/usingOraclize/usingProvable/g' ./contracts/StreamrTweetsCounter.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 | ||
|
||
steps: | ||
- name: test-wolfram-alpha | ||
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/wolfram-alpha/contracts/provableAPI.sol | ||
- cd ./ethereum-examples/solidity/truffle-examples/wolfram-alpha/ | ||
- sed -i.bu 's/oraclize/provable/g' ./contracts/WolframAlpha.sol | ||
- sed -i.bu 's/usingOraclize/usingProvable/g' ./contracts/WolframAlpha.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-youtubeViews-0.5 | ||
|
||
steps: | ||
- name: test-url-youtube | ||
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/youtube-views/contracts/provableAPI.sol | ||
- cd ./ethereum-examples/solidity/truffle-examples/youtube-views/ | ||
- sed -i.bu 's/oraclize/provable/g' ./contracts/YoutubeViews.sol | ||
- sed -i.bu 's/usingOraclize/usingProvable/g' ./contracts/YoutubeViews.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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.