Skip to content

Commit

Permalink
prepare travis for parity 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Marek Kirejczyk authored and Marek Kirejczyk committed Feb 1, 2017
1 parent 139bd45 commit 2036815
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ before_install:
- sudo bin/install_parity
- gem install bundler -v 1.11.2
before_script:
- parity --chain ~/.parity/ropsten.json --warp --password ~/.parity/pass --unlock 3089630d06fD90Ef48a0c43f000971587c1F3247 --author 3089630d06fD90Ef48a0c43f000971587c1F3247 daemon ~/.parity.pid --log-file ~/.parity.log
- parity --chain testnet -d ~/.parity --password ~/.parity/pass --unlock 3089630d06fD90Ef48a0c43f000971587c1F3247 --author 3089630d06fD90Ef48a0c43f000971587c1F3247 daemon ~/.parity.pid --log-file ~/.parity.log
- cat ~/.parity.log
- sleep 5
- parity --chain ~/.parity/ropsten.json account list
- parity --chain testnet account list
- cat ~/.parity.log
- bundle exec rake ethereum:node:waitforsync
- bundle exec rake ethereum:test:setup
Expand Down
5 changes: 3 additions & 2 deletions lib/tasks/ethereum_node.rake
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@ require 'open3'
namespace :ethereum do
namespace :node do

desc "Run testnet node "
desc "Run testnet (ropsten) node"
task :test do
args = "--chain testnet -d ~/.parity"
out, _, _ = Open3.capture3("parity #{args} account list")
account = out.split(/[\[,\]]/)[1]
cmd = "parity #{args} --password ~/.parity/pass --unlock #{account} --author #{account}"
puts cmd
system cmd
end

desc "Run morden (production) node"
desc "Run production node"
task :run do
_, out, _ = Open3.capture3("parity account list")
account = out.split(/[\[,\]]/)[1]
Expand Down

0 comments on commit 2036815

Please sign in to comment.