فهرست منبع

Update travis

Bryan Drewery 7 سال پیش
والد
کامیت
f87b44ed2c
1فایلهای تغییر یافته به همراه28 افزوده شده و 9 حذف شده
  1. 28 9
      .travis.yml

+ 28 - 9
.travis.yml

@@ -8,9 +8,9 @@ before_install:
   - if [ "$CXX" = "g++" ]; then sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y; fi
   - sudo apt-get -y update
   - sudo apt-get -y install tcl tcl-dev
-  - if [ "$CXX" = "g++" ]; then sudo apt-get -y install libcppunit-dev libcppunit-1.13-0; fi
-  - if [ "$CXX" = "g++" ]; then sudo apt-get -y install gcc-4.9 g++-4.9; fi
-  - if [ "$CXX" = "g++" ]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
+  - if [ "$CXX" = "g++" ]; then echo sudo apt-get -y install libcppunit-dev libcppunit-1.13-0; fi
+  - if [ "$CXX" = "g++" ]; then sudo apt-get -y install gcc-6 g++-6; fi
+  - if [ "$CXX" = "g++" ]; then export CXX="g++-6" CC="gcc-6"; fi
   - if [ "$CXX" = "clang++" ]; then sudo apt-get -y install clang-3.6; fi
   - if [ "$CXX" = "clang++" ]; then svn co --quiet --trust-server-cert --non-interactive https://llvm.org/svn/llvm-project/libcxxabi/trunk@r249649 libcxxabi; fi
   - if [ "$CXX" = "clang++" ]; then svn co --quiet --trust-server-cert --non-interactive https://llvm.org/svn/llvm-project/libcxx/trunk@r249595 libcxx; fi
@@ -24,18 +24,37 @@ before_install:
   - if [ "$CXX" = "clang++" ]; then sudo cp libcxxabi/lib/libc++abi.so.1.0 /usr/lib/; fi
   - if [ "$CXX" = "clang++" ]; then sudo ln -sf libc++abi.so.1.0 /usr/lib/libc++abi.so; fi
   - if [ "$CXX" = "clang++" ]; then sudo ln -sf libc++abi.so.1.0 /usr/lib/libc++abi.so.1; fi
-  - if [ "$CXX" = "clang++" ]; then export CXXFLAGS="-stdlib=libc++" LDFLAGS="-stdlib=libc++ -lc++abi"; fi
-  - if [ "$CXX" = "clang++" ]; then (wget http://dev-www.libreoffice.org/src/cppunit-1.13.2.tar.gz && tar -zxvf cppunit-1.13.2.tar.gz && cd cppunit-1.13.2 && ./configure --prefix=/usr --disable-doc --disable-doxygen --disable-html-docs && make -j2 && sudo make install); fi
-  - export CPPFLAGS="-D_FORTIFY_SOURCE=2"
+  - if [ "$CXX" = "clang++" ]; then export CXXFLAGS="-stdlib=libc++" CPPUNIT_CFLAGS="-stdlib=libc++" LDFLAGS="-lc++abi"; fi
   - if [ "$CXX" = "clang++" ]; then export CXX="clang++-3.6" CC="clang-3.6"; fi
+  - (wget http://dev-www.libreoffice.org/src/cppunit-1.14.0.tar.gz && tar -zxvf cppunit-1.14.0.tar.gz && cd cppunit-1.14.0 && ./configure --prefix=/usr --disable-doc --disable-doxygen --disable-html-docs && make -j2 V=1 && sudo make install)
+  - export CPPFLAGS="-D_FORTIFY_SOURCE=2"
+
+# Skip install
+install: true
 
 script:
-  - if [ "${COVERITY_SCAN_BRANCH}" != "1" ]; then ./configure; fi
+  - if [ "${COVERITY_SCAN_BRANCH}" != "1" ]; then ./configure --enable-debug; fi
   - if [ "${COVERITY_SCAN_BRANCH}" != "1" ]; then make -j2 V=1; fi
   - if [ "${COVERITY_SCAN_BRANCH}" != "1" ]; then make -j2 test V=1; fi
 
-# Skip install
-install: true
+# Coverity configuration
+env:
+  global:
+    # COVERITY_SCAN_TOKEN
+   - secure: "kyAOuW9+HUbGel/mzT9rMP7gUcduUwpg6x0UjGEVgAMkv3vxRnF1ZMh2Bgcrna59IDzsacULkelDBm0+6hqEMJYmyWhb6vtwt40TLszBMFKku9Y1S1JQzyX9wvsiWC8OK2fzhbH36c45OaA0Eu9DrBg2FNQ7ZKyQkHBjhyagU8o="
+
+before_install:
+  - echo -n | openssl s_client -connect https://scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
+
+addons:
+  coverity_scan:
+    project:
+      name: "wraith/wraith"
+      description: "Build submitted via Travis CI"
+    notification_email: bryan-coverity@shatow.net
+    build_command_prepend: "cov-configure --comptype g++ --compiler ${CXX}; ./configure --enable-debug"
+    build_command: "make -j2"
+    branch_pattern: coverity_scan
 
 # State we need old build infrastructure for now
 sudo: required