Merge pull request #32

b0cc21f build: add travis support (Cory Fields)
d409087 build: add autogen. How was this missing? (Cory Fields)
This commit is contained in:
Pieter Wuille 2014-06-20 23:26:06 +02:00
commit 176b5041f3
No known key found for this signature in database
GPG Key ID: 8F653255C87992E0
5 changed files with 32 additions and 5 deletions

1
.gitignore vendored
View File

@ -11,7 +11,6 @@ configure
.libs/
Makefile.in
aclocal.m4
autogen.sh
autom4te.cache/
config.log
config.status

28
.travis.yml Normal file
View File

@ -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

View File

@ -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

View File

@ -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

2
autogen.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
autoreconf -if