aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2017-02-08 20:56:23 +0800
committerchriseth <chris@ethereum.org>2017-04-25 22:47:43 +0800
commit1caf1f0b8d4b84881a1fb9a2684b5978825b3e08 (patch)
treeeb24585bae1330aa92b448bd07ef744105467a61
parent362813f0d6a0a8e548a626f2383121301b582a78 (diff)
downloaddexon-solidity-1caf1f0b8d4b84881a1fb9a2684b5978825b3e08.tar.gz
dexon-solidity-1caf1f0b8d4b84881a1fb9a2684b5978825b3e08.tar.zst
dexon-solidity-1caf1f0b8d4b84881a1fb9a2684b5978825b3e08.zip
Test using eth from docker.
-rw-r--r--.travis.yml4
-rwxr-xr-xscripts/tests.sh3
2 files changed, 6 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index d947707c..1bf8ffe5 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -60,6 +60,8 @@ matrix:
dist: trusty
sudo: required
compiler: gcc
+ before_install:
+ - docker pull ethereum/client-cpp
env:
- ZIP_SUFFIX=ubuntu-trusty
- SOLC_STOREBYTECODE=On
@@ -68,6 +70,8 @@ matrix:
dist: trusty
sudo: required
compiler: clang
+ before_install:
+ - docker pull ethereum/client-cpp
env:
- ZIP_SUFFIX=ubuntu-trusty-clang
- SOLC_STOREBYTECODE=On
diff --git a/scripts/tests.sh b/scripts/tests.sh
index d47edd28..34d71bd2 100755
--- a/scripts/tests.sh
+++ b/scripts/tests.sh
@@ -43,7 +43,8 @@ test "${output//[[:blank:]]/}" = "3"
if [[ "$OSTYPE" == "darwin"* ]]; then
ETH_PATH="$REPO_ROOT/eth"
else
- ETH_PATH="eth"
+ mkdir -p /tmp/test
+ ETH_PATH="docker run --rm -v /tmp/test:/tmp/test -e HOME=/tmp/test/ --user $(id -u):$(id -g) ethereum/client-cpp"
fi
# This trailing ampersand directs the shell to run the command in the background,