From d40908763a9e654f5b629eee11ec161ebb9ef3ca Mon Sep 17 00:00:00 2001 From: Cory Fields Date: Mon, 16 Jun 2014 21:40:44 -0400 Subject: [PATCH 1/2] build: add autogen. How was this missing? --- .gitignore | 1 - Makefile.am | 2 +- README.md | 4 +--- autogen.sh | 2 ++ 4 files changed, 4 insertions(+), 5 deletions(-) create mode 100755 autogen.sh diff --git a/.gitignore b/.gitignore index f3d26df3ec9..4416848a584 100644 --- a/.gitignore +++ b/.gitignore @@ -11,7 +11,6 @@ configure .libs/ Makefile.in aclocal.m4 -autogen.sh autom4te.cache/ config.log config.status diff --git a/Makefile.am b/Makefile.am index e3334284f41..99800847f4e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -57,7 +57,7 @@ tests_LDFLAGS = -static TESTS = tests endif -EXTRA_DIST = nasm_lt.sh +EXTRA_DIST = autogen.sh nasm_lt.sh #x86_64 only if USE_ASM diff --git a/README.md b/README.md index 4151314845a..419f28c28be 100644 --- a/README.md +++ b/README.md @@ -41,9 +41,7 @@ Build steps libsecp256k1 is built using autotools: - $ aclocal - $ autoreconf --install - $ automake + $ ./autogen.sh # not necessary when building from release tarballs $ ./configure $ make $ sudo make install # optional diff --git a/autogen.sh b/autogen.sh new file mode 100755 index 00000000000..4e7cc05373f --- /dev/null +++ b/autogen.sh @@ -0,0 +1,2 @@ +#!/bin/sh +autoreconf -if From b0cc21f896ed12d5b5b057958326b2965aa127ee Mon Sep 17 00:00:00 2001 From: Cory Fields Date: Mon, 16 Jun 2014 21:34:56 -0400 Subject: [PATCH 2/2] build: add travis support This adds a huge matrix of builds. The undesirable ones can be removed. --- .travis.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000000..ab8cb6983ed --- /dev/null +++ b/.travis.yml @@ -0,0 +1,28 @@ +language: cpp +compiler: gcc +install: + - sudo apt-get install yasm libgmp-dev +env: + global: + - FIELD=auto BIGNUM=auto ENDOMORPHISM=no BUILD=check + matrix: + - FIELD=gmp BIGNUM=gmp + - FIELD=gmp BIGNUM=openssl + - FIELD=64bit_asm BIGNUM=gmp + - FIELD=64bit_asm BIGNUM=openssl + - FIELD=64bit BIGNUM=gmp + - FIELD=64bit BIGNUM=openssl + - FIELD=32bit BIGNUM=gmp + - FIELD=32bit BIGNUM=openssl + - FIELD=gmp BIGNUM=gmp ENDOMORPHISM=yes + - FIELD=gmp BIGNUM=openssl ENDOMORPHISM=yes + - FIELD=64bit_asm BIGNUM=gmp ENDOMORPHISM=yes + - FIELD=64bit_asm BIGNUM=openssl ENDOMORPHISM=yes + - FIELD=64bit BIGNUM=gmp ENDOMORPHISM=yes + - FIELD=64bit BIGNUM=openssl ENDOMORPHISM=yes + - FIELD=32bit BIGNUM=gmp ENDOMORPHISM=yes + - FIELD=32bit BIGNUM=openssl ENDOMORPHISM=yes + - BUILD=distcheck +before_script: ./autogen.sh +script: ./configure --enable-endomorphism=$ENDOMORPHISM --with-field=$FIELD --with-bignum=$BIGNUM && make -j2 $BUILD +os: linux