forked from pipermerriam/web3.py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
82 lines (82 loc) · 2.82 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
sudo: required
language: python
dist: trusty
env:
global:
- GETH_BASE_INSTALL_PATH=$TRAVIS_BUILD_DIR
matrix:
include:
# go-ethereum
- python: "3.5"
env: TOX_POSARGS="-e py35-integration-goethereum" GETH_VERSION=v1.7.2
# ENS
- python: "3.5"
env: TOX_POSARGS="-e py35-ens"
# lint
- python: "3.5"
env: TOX_POSARGS="-e flake8"
# core
- python: "3.5"
env: TOX_POSARGS="-e py35-core"
# eth-testrpc
- python: "3.5"
env: TOX_POSARGS="-e py35-integration-ethtestrpc"
# eth-tester-pyethereum16
- python: "3.5"
env: TOX_POSARGS="-e py35-integration-ethtester" ETHEREUM_TESTER_CHAIN_BACKEND=eth_tester.backends.PyEthereum16Backend
# eth-tester-pyevm
- python: "3.5"
env: TOX_POSARGS="-e py35-integration-ethtester" ETHEREUM_TESTER_CHAIN_BACKEND=eth_tester.backends.PyEVMBackend
# Python 3.6 testing
# go-ethereum
- python: "3.6"
env: TOX_POSARGS="-e py36-integration-goethereum" GETH_VERSION=v1.7.2
# ENS
- python: "3.6"
env: TOX_POSARGS="-e py36-ens"
# lint
- python: "3.6"
env: TOX_POSARGS="-e flake8"
# core
- python: "3.6"
env: TOX_POSARGS="-e py36-core"
# eth-testrpc
- python: "3.6"
env: TOX_POSARGS="-e py36-integration-ethtestrpc"
# eth-tester-pyethereum16
- python: "3.6"
env: TOX_POSARGS="-e py36-integration-ethtester" ETHEREUM_TESTER_CHAIN_BACKEND=eth_tester.backends.PyEthereum16Backend
# eth-tester-pyevm
- python: "3.6"
env: TOX_POSARGS="-e py36-integration-ethtester" ETHEREUM_TESTER_CHAIN_BACKEND=eth_tester.backends.PyEVMBackend
cache:
- pip: true
- directories:
- $HOME/.ethash/
before_install:
- if [ -n "$GETH_VERSION" ]; then travis_retry sudo add-apt-repository -y ppa:gophers/archive; fi
- if [ -n "$GETH_VERSION" ]; then travis_retry sudo apt-get update; fi
- if [ -n "$GETH_VERSION" ]; then mkdir -p $HOME/.ethash; fi
install:
- if [ -n "$GETH_VERSION" ]; then travis_retry sudo apt-get install -y golang-1.7 build-essential; fi
- travis_retry pip install pip setuptools --upgrade
- travis_retry pip install tox
before_script:
- python --version
- pip --version
- if [ -n "$GETH_VERSION" ]; then travis_retry pip install py-geth>=1.10.1; fi
- if [ -n "$GETH_VERSION" ]; then python -m geth.install $GETH_VERSION; fi
- if [ -n "$GETH_VERSION" ]; then export GOROOT=/usr/lib/go-1.7; fi
- if [ -n "$GETH_VERSION" ]; then export GETH_BINARY="$GETH_BASE_INSTALL_PATH/geth-$GETH_VERSION/bin/geth"; fi
- if [ -n "$GETH_VERSION" ]; then $GETH_BINARY version; fi
- if [ -n "$GETH_VERSION" ]; then $GETH_BINARY makedag 0 $HOME/.ethash; fi
- pip freeze
script:
- tox $TOX_POSARGS
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/8210e0e2df3ad138a505
on_success: change
on_failure: never
on_cancel: never