2014-12-11 01:58:25 +01:00
|
|
|
language: c
|
|
|
|
compiler:
|
|
|
|
- clang
|
|
|
|
- gcc
|
2014-11-18 18:06:36 +01:00
|
|
|
install:
|
|
|
|
- sudo apt-get install -qq libssl-dev
|
2014-12-11 01:58:25 +01:00
|
|
|
- if [ "$BIGNUM" = "gmp" -o "$BIGNUM" = "auto" -o "$FIELD" = "gmp" ]; then sudo apt-get install --no-install-recommends --no-upgrade -qq libgmp-dev; fi
|
|
|
|
- if [ -n "$EXTRAPACKAGES" ]; then sudo apt-get update && sudo apt-get install --no-install-recommends --no-upgrade $EXTRAPACKAGES; fi
|
2014-11-18 18:06:36 +01:00
|
|
|
env:
|
|
|
|
global:
|
2014-12-11 01:58:25 +01:00
|
|
|
- FIELD=auto BIGNUM=auto SCALAR=auto ENDOMORPHISM=no BUILD=check EXTRAFLAGS= HOST= EXTRAPACKAGES=
|
2014-11-18 18:06:36 +01:00
|
|
|
matrix:
|
|
|
|
- SCALAR=32bit
|
|
|
|
- SCALAR=64bit
|
|
|
|
- FIELD=gmp
|
|
|
|
- FIELD=gmp ENDOMORPHISM=yes
|
|
|
|
- FIELD=64bit_asm
|
|
|
|
- FIELD=64bit_asm ENDOMORPHISM=yes
|
|
|
|
- FIELD=64bit
|
|
|
|
- FIELD=64bit ENDOMORPHISM=yes
|
|
|
|
- FIELD=32bit
|
|
|
|
- FIELD=32bit ENDOMORPHISM=yes
|
2014-12-04 19:17:07 +01:00
|
|
|
- BIGNUM=none
|
|
|
|
- BIGNUM=none ENDOMORPHISM=yes
|
2014-11-18 18:06:36 +01:00
|
|
|
- BUILD=distcheck
|
|
|
|
- EXTRAFLAGS=CFLAGS=-DDETERMINISTIC
|
2014-12-11 01:58:25 +01:00
|
|
|
- HOST=i686-linux-gnu EXTRAPACKAGES="gcc-multilib"
|
|
|
|
- HOST=i686-linux-gnu EXTRAPACKAGES="gcc-multilib" ENDOMORPHISM=yes
|
2014-11-18 18:06:36 +01:00
|
|
|
before_script: ./autogen.sh
|
2014-12-11 01:58:25 +01:00
|
|
|
script:
|
|
|
|
- if [ -n "$HOST" ]; then export USE_HOST="--host=$HOST"; fi
|
|
|
|
- if [ "x$HOST" = "xi686-linux-gnu" ]; then export CC="$CC -m32"; fi
|
|
|
|
- ./configure --enable-endomorphism=$ENDOMORPHISM --with-field=$FIELD --with-bignum=$BIGNUM --with-scalar=$SCALAR $EXTRAFLAGS $USE_HOST && make -j2 $BUILD
|
2014-11-18 18:06:36 +01:00
|
|
|
os: linux
|