mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-05-01 20:19:39 +00:00
Travis: When testing installation, build in separate dir, otherwise in checkout
The rationale is that installation from a tarball is a common task that everyone performs. For all other builds, we do specialised tests, and might as well build them directly in the checkout, which also gives us fuzz corpora. Reviewed-by: Emilia Käsper <emilia@openssl.org>
This commit is contained in:
parent
81dd999028
commit
262ee9a2c2
32
.travis.yml
32
.travis.yml
@ -59,26 +59,38 @@ matrix:
|
|||||||
compiler: gcc
|
compiler: gcc
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- sh .travis-create-release.sh $TRAVIS_OS_NAME
|
- if [ -n "$DESTDIR" ]; then
|
||||||
- tar -xvzf _srcdist.tar.gz
|
sh .travis-create-release.sh $TRAVIS_OS_NAME;
|
||||||
- mkdir _build;
|
tar -xvzf _srcdist.tar.gz;
|
||||||
- cd _build;
|
mkdir _build;
|
||||||
|
cd _build;
|
||||||
|
srcdir=../_srcdist;
|
||||||
|
top=..;
|
||||||
|
else
|
||||||
|
srcdir=.;
|
||||||
|
top=.;
|
||||||
|
fi
|
||||||
- if [ "$CC" == i686-w64-mingw32-gcc ]; then
|
- if [ "$CC" == i686-w64-mingw32-gcc ]; then
|
||||||
export CROSS_COMPILE=${CC%%gcc}; unset CC;
|
export CROSS_COMPILE=${CC%%gcc}; unset CC;
|
||||||
../_srcdist/Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
|
$srcdir/Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
|
||||||
elif [ "$CC" == x86_64-w64-mingw32-gcc ]; then
|
elif [ "$CC" == x86_64-w64-mingw32-gcc ]; then
|
||||||
export CROSS_COMPILE=${CC%%gcc}; unset CC;
|
export CROSS_COMPILE=${CC%%gcc}; unset CC;
|
||||||
../_srcdist/Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
|
$srcdir/Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
|
||||||
else
|
else
|
||||||
if which ccache >/dev/null && [ "$CC" != clang-3.6 ]; then
|
if which ccache >/dev/null && [ "$CC" != clang-3.6 ]; then
|
||||||
CC="ccache $CC";
|
CC="ccache $CC";
|
||||||
fi;
|
fi;
|
||||||
../_srcdist/config $CONFIG_OPTS;
|
$srcdir/config $CONFIG_OPTS;
|
||||||
fi
|
fi
|
||||||
- cd ..
|
- cd $top
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- cd _build;
|
- if [ -n "$DESTDIR" ]; then
|
||||||
|
cd _build;
|
||||||
|
top=..;
|
||||||
|
else
|
||||||
|
top=.;
|
||||||
|
fi
|
||||||
- make update
|
- make update
|
||||||
- make
|
- make
|
||||||
- if [ -z "$BUILDONLY" ]; then
|
- if [ -z "$BUILDONLY" ]; then
|
||||||
@ -93,7 +105,7 @@ script:
|
|||||||
mkdir "../$DESTDIR";
|
mkdir "../$DESTDIR";
|
||||||
make install install_docs DESTDIR="../$DESTDIR";
|
make install install_docs DESTDIR="../$DESTDIR";
|
||||||
fi
|
fi
|
||||||
- cd ..
|
- cd $top
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user