forked from FrediDealCash/electrumx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
33 lines (33 loc) · 977 Bytes
/
.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
sudo: required
dist: trusty
language: python
before_install:
- sudo add-apt-repository -y ppa:streetcrypto7/rocksdb
- sudo add-apt-repository -y ppa:streetcrypto7/leveldb
- sudo apt-get -qq update
- sudo apt-get install -yq libsnappy-dev zlib1g-dev libbz2-dev libgflags-dev liblz4-dev librocksdb-dev libleveldb-dev
python:
- "3.7-dev"
- "nightly"
# command to install dependencies
install:
- pip install aiohttp
- pip install aiorpcX
- pip install plyvel
- pip install pycodestyle
- pip install pylru
- pip install python-rocksdb
- pip install pytest-asyncio
- pip install pytest-cov
- pip install Sphinx
# command to run tests
script:
- pytest --cov=electrumx
- pycodestyle --max-line-length=100 electrumx/server/*.py electrumx/lib/*.py *.py
- sh -c "cd docs && make html"
# Dont report coverage from nightly
after_success:
- if [[ $(python3 -V 2>&1) == *"Python 3.7"* ]]; then
pip install python-coveralls;
coveralls;
fi