Quellcode durchsuchen

Adding Coverity scan to Travis script

Thomas Buck vor 10 Jahren
Ursprung
Commit
d16d39a9cf
3 geänderte Dateien mit 24 neuen und 3 gelöschten Zeilen
  1. 22
    1
      .travis.yml
  2. 1
    1
      cmake/travis_script_linux.sh
  3. 1
    1
      cmake/travis_script_mac.sh

+ 22
- 1
.travis.yml Datei anzeigen

@@ -20,7 +20,11 @@ after_success:
20 20
     - if [ "$TRAVIS_OS_NAME" = "linux" ]; then cmake/travis_after_success_linux.sh; fi
21 21
 
22 22
 notifications:
23
-    email: false
23
+    email:
24
+        recipients:
25
+            - xythobuz@xythobuz.de
26
+        on_success: never
27
+        on_failure: change
24 28
     irc:
25 29
         channels:
26 30
             - "chat.freenode.net#OpenRaider"
@@ -30,3 +34,20 @@ notifications:
30 34
 os:
31 35
     - linux
32 36
     - osx
37
+
38
+env:
39
+    global:
40
+        # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
41
+        #   via the "travis encrypt" command using the project repo's public key
42
+        - secure: "mZtmV3AtLWzr0NnUb6lCdRwv9Dj4AsI7NNzKFzHHr+bKavnXf8jBfDIhO9K2fBrx2h2QjDyd7BVWgIKQI8WVGpzbHTMBSrz3yPyY/X97HZMcgfClGsIqesoWldC5dIooPrfirv+/I3rQza0bvozNSXalRwMj1y1nV1lc5xO54TU="
43
+
44
+addons:
45
+    coverity_scan:
46
+        project:
47
+            name: "xythobuz/OpenRaider"
48
+            description: "Build submitted via Travis CI"
49
+        notification_email: taucher.bodensee@googlemail.com
50
+        build_command_prepend: "cmake; make clean"
51
+        build_command:   "make -j 4"
52
+        branch_pattern: coverity_scan
53
+

+ 1
- 1
cmake/travis_script_linux.sh Datei anzeigen

@@ -3,5 +3,5 @@
3 3
 if [ "$CC" = "gcc" ]; then export CC="gcc-4.8"; fi
4 4
 if [ "$CXX" = "g++" ]; then export CXX="g++-4.8"; fi
5 5
 
6
-mkdir build && cd build && cmake .. && make && make check
6
+mkdir build && cd build && cmake .. && make -j 4 && make check
7 7
 

+ 1
- 1
cmake/travis_script_mac.sh Datei anzeigen

@@ -1,4 +1,4 @@
1 1
 #!/bin/bash
2 2
 
3
-mkdir build && cd build && cmake .. && make && make check
3
+mkdir build && cd build && cmake .. && make -j 4 && make check
4 4
 

Laden…
Abbrechen
Speichern