This repository has been archived by the owner on Nov 21, 2024. It is now read-only.
forked from ethereum/web3.py
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
92 lines (92 loc) · 3.34 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
83
84
85
86
87
88
89
90
91
92
sudo: required
language: python
dist: trusty
env:
global:
- GETH_BASE_INSTALL_PATH=$TRAVIS_BUILD_DIR/gethbin
- PARITY_BASE_INSTALL_PATH=$TRAVIS_BUILD_DIR/paritybin
matrix:
include:
#
# Python 3.5 testing
#
# go-ethereum
- python: "3.5"
env: TOX_POSARGS="-e py35-integration-goethereum" GETH_VERSION=v1.7.2
# parity
- python: "3.5"
env: TOX_POSARGS="-e py35-integration-parity" PARITY_VERSION=v1.8.8
# ENS
- python: "3.5"
env: TOX_POSARGS="-e py35-ens"
# lint
- python: "3.5"
env: TOX_POSARGS="-e lint"
# core
- python: "3.5"
env: TOX_POSARGS="-e py35-core"
# 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
# parity
- python: "3.6"
env: TOX_POSARGS="-e py36-integration-parity" PARITY_VERSION=v1.8.8
# ENS
- python: "3.6"
env: TOX_POSARGS="-e py36-ens"
# lint
- python: "3.6"
env: TOX_POSARGS="-e lint"
# core
- python: "3.6"
env: TOX_POSARGS="-e py36-core"
# 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/
- $GETH_BASE_INSTALL_PATH/
- $PARITY_BASE_INSTALL_PATH/
before_install:
- if [ -n "$GETH_VERSION" ]; then mkdir -p $HOME/.ethash; fi
install:
- travis_retry pip install pip setuptools --upgrade
- travis_retry pip install tox
- if [ -n "$PARITY_VERSION" ]; then travis_retry pip install eth_utils tqdm requests eth-hash[pycryptodome]; fi
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 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" ] && [ ! -e "$GETH_BINARY" ]; then travis_retry sudo add-apt-repository -y ppa:gophers/archive; fi
- if [ -n "$GETH_VERSION" ] && [ ! -e "$GETH_BINARY" ]; then travis_retry sudo apt-get update; fi
- if [ -n "$GETH_VERSION" ] && [ ! -e "$GETH_BINARY" ]; then travis_retry sudo apt-get install -y golang-1.7 build-essential; fi
- if [ -n "$GETH_VERSION" ] && [ ! -e "$GETH_BINARY" ]; then python -m geth.install $GETH_VERSION; fi
- if [ -n "$GETH_VERSION" ]; then $GETH_BINARY version; fi
- if [ -n "$GETH_VERSION" ]; then $GETH_BINARY makedag 0 $HOME/.ethash; fi
- if [ -n "$PARITY_VERSION" ]; then python tests/integration/install_parity.py $PARITY_VERSION; 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