From c3baf5af7844063d19b34be3b13eca8053242222 Mon Sep 17 00:00:00 2001 From: Karl-Philipp Richter Date: Sun, 14 Oct 2018 20:29:58 +0200 Subject: [PATCH] Add test of out-of-source build to .travis.yml --- .travis.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index cd235e74daa8..dbbb599b85dd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,6 +21,8 @@ env: matrix: - CONFIGURE_ARGS='-Uusethreads' - CONFIGURE_ARGS='-Dusethreads' + - CONFIGURE_ARGS='-Uusethreads' OUT_OF_SOURCE='true' + - CONFIGURE_ARGS='-Dusethreads' OUT_OF_SOURCE='true' # only use gcc on linux, and only use clang on osx for now matrix: @@ -31,7 +33,8 @@ matrix: os: osx script: - - ./Configure -des -Dusedevel -Uversiononly -Dcc="ccache $CC" $CONFIGURE_ARGS -Dprefix=$HOME/perl-blead -DDEBUGGING + - if [ "x$OUT_OF_SOURCE" = "xtrue" ]; then mkdir /tmp/perl-out-of-source && cd /tmp/perl-out-of-source; fi + - $TRAVIS_BUILD_DIR/Configure -des -Dusedevel -Uversiononly -Dcc="ccache $CC" $CONFIGURE_ARGS -Dprefix=$HOME/perl-blead -DDEBUGGING # all script commands are always run # rather than using one very long oneliner using '&&', just always check the build status - if [ "x$TRAVIS_TEST_RESULT" = "x0" ]; then TEST_JOBS=$JOBS make -j$JOBS test_harness_notty; fi @@ -67,4 +70,4 @@ notifications: - "GitHub URL: https://github.com/p5h/perl5demo/commit/%{commit}" # adjust this url to use the production repo on_success: change # default: always on_failure: always # default: always -# use_notice: true \ No newline at end of file +# use_notice: true