Skip to content

Commit

Permalink
Merge pull request #60 from pipermerriam/piper/codebase-update-for-po…
Browse files Browse the repository at this point in the history
…pulus-1.0

Updates for populus 1.0.0
  • Loading branch information
pipermerriam committed Sep 13, 2016
2 parents d63fd30 + 5915f1d commit dc5f177
Show file tree
Hide file tree
Showing 73 changed files with 10,573 additions and 2,589 deletions.
38 changes: 38 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
language: python
python:
- "3.5"
dist: trusty
sudo: required
env:
global:
- SOLC_BINARY="$TRAVIS_BUILD_DIR/solc-versions/solc-0.3.6/solc"
matrix:
- TEST_DIR=accounting
- TEST_DIR=call-state
- TEST_DIR=canary
- TEST_DIR=cancelling
- TEST_DIR=claiming
- TEST_DIR=data-registry
- TEST_DIR=execution
- TEST_DIR=scheduling
cache:
- pip: true
- directories:
- $HOME/.ethash
- $TRAVIS_BUILD_DIR/solc-versions/solc-0.3.6/
- $TRAVIS_BUILD_DIR/solc-versions/solidity-0.3.6/build/
before_install:
- sudo add-apt-repository -y ppa:ethereum/ethereum
- sudo apt-get update
install:
- ./bin/install_solc.sh
- travis_retry sudo apt-get install -y ethereum
- travis_retry pip install setuptools --upgrade
- pip install -r requirements.txt
before_script:
- ls -lah $TRAVIS_BUILD_DIR/solc-versions/solc-0.3.6/
- ./solc-versions/solc-0.3.6/solc --version
- mkdir -p $HOME/.ethash
- geth makedag 0 $HOME/.ethash
script:
- py.test tests/$TEST_DIR -v
24 changes: 24 additions & 0 deletions bin/install_solc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash
#
# Install solc
#

set -e
set -u

if [ ! -e solc-versions/solidity-0.3.6/build/solc/solc ] ; then
wget -O solc.tar.gz "https://github.com/ethereum/solidity/archive/v0.3.6.tar.gz"
install -d solc-versions
cd solc-versions
tar -zxvf ../solc.tar.gz
cd solidity-0.3.6
./scripts/install_deps.sh
mkdir -p build
cd build
cmake .. && make
ln -fs $PWD/solc/solc ../../../solc-versions/solc-0.3.6
chmod +x ../../../solc-versions/solc-0.3.6
echo "Geth installed at $PWD/solc-0.3.6"
else
echo "Geth already installed at $PWD/solc/solc-0.3.6"
fi
Loading

0 comments on commit dc5f177

Please sign in to comment.