]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/kaldi.git/blobdiff - .travis.yml
[build] Change to compilation flags for Sequitur on Mac (#1716)
[processor-sdk/kaldi.git] / .travis.yml
index f343c0396ac8683cc906b2eea706776b6dfb24ae..de1a83b9e769bf92517c583118b3e7b73317e201 100644 (file)
@@ -3,6 +3,10 @@ notifications:
 
 language: cpp
 
+cache:
+  directories:
+  - $HOME/.ccache
+
 os:
   - linux
 
@@ -10,14 +14,13 @@ addons:
   apt:
     sources:
       - ubuntu-toolchain-r-test
+      - llvm-toolchain-precise-3.8
     packages:
       - gdb
-      - gcc-4.9
       - g++-4.9
       - gfortran-4.9
       - liblapack-dev
-#      - libopenblas-dev
-#      - libblas-dev
+      - clang-3.8
 
 branches:
   only:
@@ -27,15 +30,33 @@ before_install:
   - cat /proc/sys/kernel/core_pattern
   - export XROOT=~/xroot
   - tools/extras/travis_install_bindeps.sh $XROOT
+  - export PATH=$XROOT/usr/bin:$PATH
+
+before_script:
+  - which ccache
+  - ccache --version
+  - ccache --show-stats
+  - ccache --zero-stats --max-size=3G
+
+env:
+  - CI_TARGETS="all ext"        # Job1: Build everything.
+  - CI_TARGETS="test"           # Job2: Test libraries. #### ext_test? adds 5min compile, runs 1 test.
 
 script:
-  - CXX=g++-4.9
+  # See http://petereisentraut.blogspot.com/2011/05/ccache-and-clang.html and
+  # http://peter.eisentraut.org/blog/2014/12/01/ccache-and-clang-part-3/
+  # for the explanation why extra switches needed for clang with ccache.
+  - CXX="ccache clang++-3.8 -Qunused-arguments -fcolor-diagnostics -Wno-tautological-compare"
     CFLAGS="-march=native"
     LDFLAGS="-llapack"
     INCDIRS="$XROOT/usr/include"
     LIBDIRS="$XROOT/usr/lib"
       tools/extras/travis_script.sh
+#   To troubleshoot cache, add to above: CI_TARGETS=util CCACHE_LOGFILE=~/ccache.log
+  - cat src/base/version.h
+
+before_cache:
+  - ccache --show-stats
 
 after_failure:
   - tools/extras/travis_show_failures.sh
-  - ldd -v src/matrix/matrix-lib-test