From 6f9a7f7aa19105db5470d96d0bda6624f30ed6e5 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 4 Apr 2017 12:04:05 +0930 Subject: [PATCH 1/2] Travis support. Signed-off-by: Rusty Russell --- .travis.yml | 7 +++++++ tools/travis.sh | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 .travis.yml create mode 100755 tools/travis.sh diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..451dff537 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,7 @@ +language: c +dist: trusty +sudo: true + +# Trusty (aka 14.04) is way way too old, so run in docker... +script: + - tools/travis.sh diff --git a/tools/travis.sh b/tools/travis.sh new file mode 100755 index 000000000..91cb3289f --- /dev/null +++ b/tools/travis.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +# This build script is for running the Travis builds using docker. +# Stolen from: https://github.com/shenki/openbmc-build-scripts/blob/master/linux-openbmc-build.sh + +# Trace bash processing +set -ex + +# Build the docker container +docker build -t ubuntu - < Date: Tue, 4 Apr 2017 15:32:57 +0930 Subject: [PATCH 2/2] INSTALL: add python requirements for tests, move asciidoc to devel. Signed-off-by: Rusty Russell --- INSTALL.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index 434bf8eee..7852ae383 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -6,7 +6,11 @@ You will need several development libraries: * protobuf-c: version 1.1.0 or above. * libsqlite3: for database support. * libgmp: for secp256k1 -* asciidoc: for formatting the man page (if you change them) + +For actually doing development and running the tests, you will also need: +* pip3: to install python-bitcoinlib +* asciidoc: for formatting the man pages (if you change them) +* valgrind: for extra debugging checks You will also need a version of bitcoind with segregated witness support, such as the 0.13 or above. @@ -16,7 +20,12 @@ To Build on Ubuntu 16.04 Get dependencies: ``` -sudo apt-get install autoconf libtool libprotobuf-c-dev libsqlite3-dev libgmp-dev libsqlite3-dev asciidoc +sudo apt-get install autoconf libtool libprotobuf-c-dev libsqlite3-dev libgmp-dev libsqlite3-dev +``` + +For development or running tests, get additional dependencies: +``` +sudo apt-get asciidoc valgrind pip3 && pip3 install python-bitcoinlib ``` Clone lightning: