]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Test out-of-tree build in Travis-CI
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 13 Feb 2020 17:58:18 +0000 (18:58 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 13 Feb 2020 18:12:33 +0000 (19:12 +0100)
.travis.yml

index 30d1db52b50e1d2c858c4da3c38d97301915a811..b3f5db4f68820a4c80401ed96110bfbaadac6e52 100644 (file)
@@ -3,7 +3,8 @@ dist: xenial
 
 script:
   - ./autogen.sh
-  - ./configure $CONFIGURE
+  - test -z $BUILD_DIR || { mkdir -p $BUILD_DIR; cd $BUILD_DIR; }
+  - ${SRC_DIR:-.}/configure $CONFIGURE
   - make
   - make ${TEST:-test}
 
@@ -13,7 +14,7 @@ matrix:
   # Job 1: Linux native GCC
   - os: linux
     compiler: gcc
-    env: V=1 ENABLE_CACHE_CLEANUP_TESTS=1
+    env: V=1 ENABLE_CACHE_CLEANUP_TESTS=1 BUILD_DIR=build SRC_DIR=..
     addons:
       apt:
         packages: