travis: Make sure we always use the master pyln modules

We want to catch upcoming incompatibilities early, even if a plugin lists an
old version.
This commit is contained in:
Christian Decker
2020-08-13 12:37:23 +02:00
parent aaa49b34f7
commit 3b0d7a0dec

View File

@@ -25,7 +25,6 @@ echo 'travis_fold:start:script.1'
pyenv global 3.7
pip3 install --quiet --upgrade pip
pip3 install --user --quiet \
pyln-testing \
mako==1.0.14 \
psycopg2-binary>=2.8.3 \
pytest-timeout==1.3.3 \
@@ -44,8 +43,6 @@ PY3=$(which python3)
echo 'travis_fold:start:script.2'
git clone --recursive https://github.com/ElementsProject/lightning.git /tmp/lightning
(cd /tmp/lightning && git checkout "$LIGHTNING_VERSION")
(cd /tmp/lightning/contrib/pyln-client && $PY3 setup.py install)
(cd /tmp/lightning/contrib/pyln-testing && $PY3 setup.py install)
# Compiling lightningd can be noisy and time-consuming, cache the binaries
if [ ! -f "$CWD/dependencies/usr/local/bin/lightningd" ]; then
@@ -60,6 +57,9 @@ echo 'travis_fold:end:script.2'
# Collect libraries that the plugins need and install them
echo 'travis_fold:start:script.3'
find . -name requirements.txt -exec pip3 install --quiet --upgrade --user -r {} \;
# Force the tests to use the latest and greatest version of pyln
pip install -U pyln-testing>=0.8.2 pyln-client>=0.8.2
echo 'travis_fold:end:script.3'
# Add the local bitcoind bin dir so we can start and control it: