4
0
Fork 0

Using parity as test chain for travis now

contract-refactor
hswick 7 years ago
parent 4b2ef0b88b
commit ba459bbc1c
  1. 2
      .travis.yml
  2. 14
      README.md
  3. 13
      travis_install.sh
  4. 4
      travis_test.sh

@ -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

@ -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,

@ -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)

@ -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)
kill -9 $(lsof -t -i:8545)

Loading…
Cancel
Save