diff --git a/.travis.yml b/.travis.yml index 9e0060f..d8345d2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,7 @@ elixir: install: - sudo apt-get update - - sudo apt-get install nodejs npm + - bash travis-install.sh - npm install -g ganache-cli@6.1.3 - mix local.rebar --force # for Elixir 1.3.0 and up - mix local.hex --force diff --git a/README.md b/README.md index 0efcc6e..87b2568 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,20 @@ Ensure you have an ethereum node to connect to at the specified url in your conf ganache-cli ``` +Or you can use parity: +Install Parity, then run it with + +``` +echo > passfile +parity --chain dev --unlock=0x00a329c0648769a73afac7f9381e08fb43dbea72 --reseal-min-period 0 --password passfile +``` + +If Parity complains about password or missing account, try + +``` +parity --chain dev --unlock=0x00a329c0648769a73afac7f9381e08fb43dbea72 +``` + Make sure your config includes: ```elixir config :ethereumex, diff --git a/travis_install.sh b/travis_install.sh new file mode 100644 index 0000000..8fd0392 --- /dev/null +++ b/travis_install.sh @@ -0,0 +1,13 @@ +# just to be safe +echo > passfile + +wget https://parity-downloads-mirror.parity.io/v1.8.5/x86_64-unknown-linux-gnu/parity + +chmod 755 ./parity +echo > passfile + +./parity --chain dev 2>&1 & + +PARITY_PID=$! +sleep 10 +kill -9 $(lsof -t -i:8545) diff --git a/travis_test.sh b/travis_test.sh index dd13be3..25816d4 100755 --- a/travis_test.sh +++ b/travis_test.sh @@ -2,8 +2,8 @@ #!/bin/bash # This is for travis -ganache-cli 2>&1 & +parity --chain dev --unlock=0x00a329c0648769a73afac7f9381e08fb43dbea72 --reseal-min-period 0 --password passfile 2>&1 & sleep 10 mix test sleep 10 -kill -9 $(lsof -t -i:8545) \ No newline at end of file +kill -9 $(lsof -t -i:8545)