ENH: Fix travis build pathing
authorHans Johnson <hans-johnson@uiowa.edu>
Wed, 27 Jul 2016 13:56:45 +0000 (08:56 -0500)
committerHans Johnson <hans-johnson@uiowa.edu>
Thu, 28 Jul 2016 13:51:34 +0000 (08:51 -0500)
The travis builds were attempting to be done
inside the source tree.  This is generally considered
bad form since it is possible for dynamically created
files to overwrite static files, and because the
files manages by git should not be confouded with
build files.

.travis.yml

index 97b8026..d1b3cc6 100644 (file)
@@ -14,7 +14,14 @@ os:
   - osx
 
 script:
-  - cmake -DCMAKE_INSTALL_PREFIX=~/.local -DLAPACKE=ON -DCBLAS=ON .
+  - export SRC_DIR=$(pwd)
+  - export BLD_DIR=${SRC_DIR}/../lapack-travis-bld
+  - export INST_DIR=${SRC_DIR}/../lapack-travis-install
+  - mkdir -p ${BLD_DIR}
+  - cd ${BLD_DIR}
+# See issue #17 on github dashboard.  Once resolved, use -DCBLAS=ON
+#  - cmake -DCMAKE_INSTALL_PREFIX=${INST_DIR} -DLAPACKE=ON ${SRC_DIR}
+  - cmake -DCMAKE_INSTALL_PREFIX=${INST_DIR} -DLAPACKE=ON ${SRC_DIR}
   - ctest -D ExperimentalStart
   - ctest -D ExperimentalConfigure
   - ctest -D ExperimentalBuild -j2