瀏覽代碼

redefining gcc-4.8 to match coverity config

Stasik0 10 年之前
父節點
當前提交
3b82c75c59
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      .travis.yml

+ 3 - 1
.travis.yml

@@ -24,7 +24,9 @@ before_install:
    - wget http://security.ubuntu.com/ubuntu/pool/main/c/check/check_0.9.10-6ubuntu3_amd64.deb
    - sudo dpkg -i check_0.9.10-6ubuntu3_amd64.deb
    - sudo pip install cpp-coveralls
-   - export CC=/usr/bin/gcc-4.8
+   - sudo update-alternatives --remove-all gcc 
+   - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20
+   - sudo update-alternatives --config gcc
 script: 
    - mkdir -p build
    - cd build