Sfoglia il codice sorgente

Adding Coverity scan to Travis script

Thomas Buck 9 anni fa
parent
commit
d16d39a9cf
3 ha cambiato i file con 24 aggiunte e 3 eliminazioni
  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 Vedi File

20
     - if [ "$TRAVIS_OS_NAME" = "linux" ]; then cmake/travis_after_success_linux.sh; fi
20
     - if [ "$TRAVIS_OS_NAME" = "linux" ]; then cmake/travis_after_success_linux.sh; fi
21
 
21
 
22
 notifications:
22
 notifications:
23
-    email: false
23
+    email:
24
+        recipients:
25
+            - xythobuz@xythobuz.de
26
+        on_success: never
27
+        on_failure: change
24
     irc:
28
     irc:
25
         channels:
29
         channels:
26
             - "chat.freenode.net#OpenRaider"
30
             - "chat.freenode.net#OpenRaider"
30
 os:
34
 os:
31
     - linux
35
     - linux
32
     - osx
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 Vedi File

3
 if [ "$CC" = "gcc" ]; then export CC="gcc-4.8"; fi
3
 if [ "$CC" = "gcc" ]; then export CC="gcc-4.8"; fi
4
 if [ "$CXX" = "g++" ]; then export CXX="g++-4.8"; fi
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 Vedi File

1
 #!/bin/bash
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
 

Loading…
Annulla
Salva