-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
59 lines (49 loc) · 1.48 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
language: python
addons:
postgresql: "9.4"
firefox: "45.0"
dist: trusty
services:
- postgresql
- redis-server
matrix:
include:
- python: 3.5
env:
- PYTHON_VERSION=python3.5
- TOXENV=py35
# http://stackoverflow.com/a/19460794/315168
cache:
directories:
# /home/travis/.cache/pip/wheels is the normal pip cache folder
- $HOME/.cache/pip
- .tox
- geth
- $HOME/.ethash
install:
- travis_retry pip install tox
before_script:
# https://docs.travis-ci.com/user/gui-and-headless-browsers/
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- tar -xjf /tmp/firefox-45.0.tar.bz2 --directory /tmp
- travis_retry sudo apt-get install software-properties-common -y -qq
- travis_retry sudo add-apt-repository -y ppa:ethereum/ethereum
- travis_retry sudo apt-get update
- travis_retry sudo apt-get install geth -y -qq
- export PATH="/tmp/firefox:$PATH"
- echo "Using firefox version `firefox --version`"
- echo "Using geth `geth --help`"
- psql -c 'create database wallet_test;' -U postgres
- pip install -U pip
script:
# https://pypi.python.org/pypi/coverage_enable_subprocess
- pip install coverage-enable-subprocess
- export COVERAGE_PROCESS_START=$PWD/.coveragerc
- tox -- -x
after_success:
# Update coverage information in codecov.io.
- .tox/py35/bin/codecov
# Dump package list so we have a log of last known good version set
# This will simply fail under py34.
- .tox/py35/bin/pip freeze