Skip to content

Commit 87b967d

Browse files
committed
Add command to .travis.yml to install libbitcoinconsensus
Also: - use system secp256k1 for travis tests - use ubuntu bionic as the system for travis tests
1 parent 911952a commit 87b967d

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.travis.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: python
22

3-
dist: xenial
3+
dist: bionic
44

55
stages: test
66

@@ -29,9 +29,11 @@ jobs:
2929
cache: "$HOME/Library/Caches/pip"
3030
addons:
3131
homebrew:
32-
packages: python3
32+
packages:
33+
- python3
3334

3435
before_install:
36+
- 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 ..;'
3537
- python3 -m pip install --upgrade virtualenv
3638
- python3 -m pip install coverage
3739
- virtualenv -p python3 --system-site-packages "$HOME/venv"
@@ -40,11 +42,17 @@ jobs:
4042
env:
4143
- LD_LIBRARY_PATH=/usr/local/lib
4244

45+
addons:
46+
apt:
47+
packages:
48+
- libsecp256k1-dev
49+
4350
before_install:
4451
- python3 -m pip install coverage
4552

4653
install:
47-
- 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 ..;'
54+
# libbitcoinconsensus
55+
- sh -c 'git clone https://github.com/bitcoin/bitcoin.git bitcoin && cd bitcoin && ./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 ..'
4856

4957
script:
5058
- "coverage run --append --omit='tests/*,*/site-packages/*,*/distutils/*' setup.py test -q"

0 commit comments

Comments
 (0)