forked from petertodd/python-bitcoinlib
-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
59 lines (47 loc) · 1.79 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
language: python
dist: bionic
stages: test
python:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
branches:
only:
- gh-pages
- /.*/
jobs:
include:
stage: test
os: osx
osx_image: xcode12
language: sh
env:
- HOMEBREW_NO_INSTALL_CLEANUP=1
- HOMEBREW_NO_ANALYTICS=1
before_cache: rm -f "$HOME/Library/Caches/pip/log/debug.log"
cache: "$HOME/Library/Caches/pip"
addons:
homebrew:
packages:
- python3
before_install:
- sh -c 'git clone git://github.com/bitcoin/secp256k1.git libsecp256k1 && cd libsecp256k1 && ./autogen.sh && ./configure --disable-coverage --disable-benchmark --disable-tests --disable-exhaustive-tests && make && sudo make install && cd ..;'
- python3 -m pip install --upgrade virtualenv
- python3 -m pip install coverage
- virtualenv -p python3 --system-site-packages "$HOME/venv"
- source "$HOME/venv/bin/activate"
env:
- LD_LIBRARY_PATH=/usr/local/lib
addons:
apt:
packages:
- libsecp256k1-dev
before_install:
- python3 -m pip install coverage
install:
# libbitcoinconsensus
- sh -c 'git clone https://github.com/bitcoin/bitcoin.git bitcoin && cd bitcoin && git checkout v0.20.1 && ./autogen.sh && ./configure --without-qtdbus --without-qrencode --without-miniupnpc --disable-tests --disable-wallet --disable-zmq --with-libs --disable-util-cli --disable-util-tx --disable-util-wallet --disable-bench --without-daemon --without-gui --disable-fuzz --disable-ccache --disable-static --with-system-libsecp256k1 && make && sudo make install && cd ..'
script:
- "coverage run --append --omit='tests/*,*/site-packages/*,*/distutils/*' setup.py test -q"