Browse Source

For Travis CI - setup the build to use the upgraded GCC compiler.
[ci only: Annotate]

Yao Wei Tjong 姚伟忠 10 years ago
parent
commit
12d6cfa322
1 changed files with 2 additions and 1 deletions
  1. 2 1
      .travis.yml

+ 2 - 1
.travis.yml

@@ -178,7 +178,8 @@ before_script:
   - export TRAVIS_COMMIT=$TRAVIS_COMMIT~
   - export COMMIT_MESSAGE=$(git log --format=%B -n 1 $TRAVIS_COMMIT)
   - git clone --depth 1 https://github.com/urho3d/fastcomp-clang.git && export FASTCOMP_CLANG_ROOT=$(pwd)/fastcomp-clang
-  - export PATH=$(whereis -b ccache |grep -o '\S*lib\S*'):$PATH
+  - export CXX=g++-4.9 CC=gcc-4.9
+  - for compiler in gcc g++; do ln -s $(which ccache) $HOME/$compiler-4.9; done && export PATH=$HOME:$PATH
   - rake ci_setup_cache
 script: rake annotate
 after_script: rake ci_teardown_cache