Skip to content

Commit

Permalink
travis: Increase testing parallelism
Browse files Browse the repository at this point in the history
  • Loading branch information
cdecker committed Aug 28, 2020
1 parent b9a8622 commit f43414d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
4 changes: 0 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ env:
- COMPAT=1 DEVELOPER=1 EXPERIMENTAL_FEATURES=0
- COMPAT=1 DEVELOPER=1 EXPERIMENTAL_FEATURES=1

cache:
directories:
- dependencies

before_install:
sudo apt-get install -y libsqlite3-dev gcc-4.8 gettext python python3 python3-mako net-tools zlib1g-dev libsodium-dev

Expand Down
19 changes: 8 additions & 11 deletions .travis/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,12 @@ 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")

# Compiling lightningd can be noisy and time-consuming, cache the binaries
if [ ! -f "$CWD/dependencies/usr/local/bin/lightningd" ]; then
(
cd /tmp/lightning && \
./configure --disable-valgrind && \
make -j 8 DESTDIR=dependencies/
)
fi
(
cd /tmp/lightning
git checkout "$LIGHTNING_VERSION"
./configure --disable-valgrind
make -j 8
)
echo 'travis_fold:end:script.2'

# Collect libraries that the plugins need and install them
Expand Down Expand Up @@ -83,4 +79,5 @@ which python3

rm /tmp/.coverage.* .coverage.tmp .coverage || true

pytest -vvv --timeout=550 --timeout_method=thread -p no:logging -n 2
pytest -vvv --timeout=550 --timeout_method=thread -p no:logging -n 5
ls -lha

0 comments on commit f43414d

Please sign in to comment.