From d819760d3da5dd5491c94a2d6b36553708c9338b Mon Sep 17 00:00:00 2001 From: Bernd Edlinger Date: Fri, 13 Sep 2019 09:24:53 +0200 Subject: [PATCH] Add a minimal build target for Travis and Appveyor [extended tests] Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/9982) --- .travis.yml | 11 +++++++++-- appveyor.yml | 3 +++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index b244383d2f..188a82d246 100644 --- a/.travis.yml +++ b/.travis.yml @@ -69,7 +69,7 @@ matrix: env: CONFIG_OPTS="--strict-warnings -D__NO_STRING_INLINES" - os: linux compiler: gcc - env: CONFIG_OPTS="--strict-warnings" COMMENT="Move to the BORINGTEST build when interoperable" + env: CONFIG_OPTS="--strict-warnings no-ec enable-trace enable-ssl-trace enable-zlib enable-zlib-dynamic enable-crypto-mdebug enable-crypto-mdebug-backtrace enable-egd" COMMENT="Move to the BORINGTEST build when interoperable" - os: linux dist: trusty compiler: clang @@ -146,6 +146,9 @@ matrix: # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics script: true + - os: linux + compiler: gcc + env: CONFIGURE_TARGET="linux-generic32" CONFIG_OPTS="--strict-warnings no-shared no-dso no-pic no-aria no-async no-autoload-config no-blake2 no-bf no-camellia no-cast no-chacha no-cmac no-cms no-cmp no-comp no-ct no-des no-dgram no-dh no-dsa no-dtls no-ec2m no-engine no-filenames no-gost no-idea no-ktls no-mdc2 no-md4 no-multiblock no-nextprotoneg no-ocsp no-ocb no-poly1305 no-psk no-rc2 no-rc4 no-rmd160 no-seed no-siphash no-siv no-sm2 no-sm3 no-sm4 no-srp no-srtp no-ssl3 no-ssl3-method no-ts no-ui-console no-whirlpool no-asm -DOPENSSL_NO_SECURE_MEMORY -DOPENSSL_SMALL_FOOTPRINT" exclude: - os: linux compiler: clang @@ -188,7 +191,11 @@ before_script: if which ccache >/dev/null && test "$BORINGSSL_TESTS" != yes; then CC="ccache $CC"; fi; - $srcdir/config -v $CONFIG_OPTS; + if [ -n "$CONFIGURE_TARGET" ]; then + $srcdir/Configure $CONFIGURE_TARGET $CONFIG_OPTS; + else + $srcdir/config -v $CONFIG_OPTS; + fi; fi - ./configdata.pm --dump - cd $top diff --git a/appveyor.yml b/appveyor.yml index 22940694cd..949d6aad50 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -13,6 +13,7 @@ environment: configuration: - shared - plain + - minimal before_build: - ps: >- @@ -32,6 +33,8 @@ before_build: - ps: >- If ($env:Configuration -Match "shared") { $env:SHARED="no-makedepend" + } ElseIf ($env:Configuration -Match "minimal") { + $env:SHARED="no-shared no-dso no-makedepend no-aria no-async no-autoload-config no-blake2 no-bf no-camellia no-cast no-chacha no-cmac no-cms no-cmp no-comp no-ct no-des no-dgram no-dh no-dsa no-dtls no-ec2m no-engine no-filenames no-gost no-idea no-ktls no-mdc2 no-md4 no-multiblock no-nextprotoneg no-ocsp no-ocb no-poly1305 no-psk no-rc2 no-rc4 no-rmd160 no-seed no-siphash no-siv no-sm2 no-sm3 no-sm4 no-srp no-srtp no-ssl3 no-ssl3-method no-ts no-ui-console no-whirlpool no-asm -DOPENSSL_SMALL_FOOTPRINT" } Else { $env:SHARED="no-shared no-makedepend" } -- 2.25.1