Skip to contentSkip to conversation

travis: skip building coverity, smoke, and master

PATCH Superseded Doug Goldstein 3 participants 9 messages Mar 4, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 travis: skip building coverity, smoke, and master

Skip building of the coverity, smoke and master branches since they just fast forward from staging.

---
CC: Ian Jackson <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Keir Fraser <[email protected]>
CC: Tim Deegan <[email protected]>
CC: Andrew Cooper <[email protected]>

---
 .travis.yml | 6 ++++++
 1 file changed, 6 insertions(+)
.travis.yml +6 -0
index 6693af2..74fa14e 100644
@@ -1,6 +1,12 @@
 language: c
 dist: trusty
 sudo: required
+# don't test master, smoke and coverity branches
+branches:
+    except:
+        - master
+        - smoke
+        - coverity-tested/master
 matrix:
     include:
         - compiler: gcc
Signature · 7 lines
2.4.10


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#1 lore raw

PATCH 2/3 travis: use matching C++ for GCC version

When we use GCC 5.x, we need to install the C++ compiler and the C compiler together because QEMU tests for feature flags against the C compiler and assumes the C++ compiler has them. We also have to ensure that it is used. Have to do the modification of the CXX variable in two steps to ensure we support older versions of bash in use by the test machines. While we're at it simply how we select our compiler.

---
CC: Ian Jackson <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Keir Fraser <[email protected]>
CC: Tim Deegan <[email protected]>
CC: Andrew Cooper <[email protected]>

---
 .travis.yml | 25 ++++++++++++++-----------
 1 file changed, 14 insertions(+), 11 deletions(-)
.travis.yml +14 -11
index 74fa14e..f3d4b99 100644
@@ -13,20 +13,20 @@ matrix:
           env: XEN_TARGET_ARCH=x86_64
         - compiler: gcc
           env: XEN_TARGET_ARCH=x86_64 XEN_CONFIG_EXPERT=y RANDCONFIG=y
-        - compiler: gcc
-          env: XEN_TARGET_ARCH=x86_64 COMPILER=gcc-5
+        - compiler: gcc-5
+          env: XEN_TARGET_ARCH=x86_64
         - compiler: gcc
           env: XEN_TARGET_ARCH=x86_64 debug=y
-        - compiler: gcc
-          env: XEN_TARGET_ARCH=x86_64 COMPILER=gcc-5 debug=y
+        - compiler: gcc-5
+          env: XEN_TARGET_ARCH=x86_64 debug=y
         - compiler: clang
           env: XEN_TARGET_ARCH=x86_64 clang=y
-        - compiler: clang
-          env: XEN_TARGET_ARCH=x86_64 COMPILER=clang-3.8 clang=y
+        - compiler: clang-3.8
+          env: XEN_TARGET_ARCH=x86_64 clang=y
         - compiler: clang
           env: XEN_TARGET_ARCH=x86_64 clang=y debug=y
-        - compiler: clang
-          env: XEN_TARGET_ARCH=x86_64 COMPILER=clang-3.8 clang=y debug=y
+        - compiler: clang-3.8
+          env: XEN_TARGET_ARCH=x86_64 clang=y debug=y
         - compiler: gcc
           env: XEN_TARGET_ARCH=arm32 CROSS_COMPILE=arm-linux-gnueabihf-
         - compiler: gcc
@@ -72,15 +72,18 @@ addons:
             - gcc-arm-linux-gnueabihf
             - gcc-aarch64-linux-gnu
             - gcc-5
+            - g++-5
             - clang-3.8
+# we must set CXX manually instead of using 'language: cpp' due to
+# travis-ci/travis-ci#3871
 before_script:
-    - export CC=${COMPILER:-${CC}}
-    - ${CC} --version
+    - export CXX=${CC/cc/++}
+    - export CXX=${CXX/clang/clang++}
 script:
     - ( [ "x${RANDCONFIG}" = "xy" ] && ( make -C xen randconfig )
       || exit 0 )
     - ( ./configure --disable-tools --disable-stubdom --enable-docs &&
-      make CC="${CROSS_COMPILE}${CC}" HOSTCC="${CC}" dist )
+      make dist )
 after_script:
     - cat xen/.config
 notifications:
Signature · 7 lines
2.4.10


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#2 lore raw

PATCH 3/3 travis: actually disable debug for non-debug

In reply to Doug Goldstein

Non-debug builds need to explicitly disable debug due to debug being defaulted to y in Config.mk

---
CC: Ian Jackson <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Keir Fraser <[email protected]>
CC: Tim Deegan <[email protected]>
CC: Andrew Cooper <[email protected]>

---
 .travis.yml | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
.travis.yml +9 -9
index f3d4b99..0c93b4e 100644
@@ -10,33 +10,33 @@ branches:
 matrix:
     include:
         - compiler: gcc
-          env: XEN_TARGET_ARCH=x86_64
+          env: XEN_TARGET_ARCH=x86_64 debug=n
         - compiler: gcc
-          env: XEN_TARGET_ARCH=x86_64 XEN_CONFIG_EXPERT=y RANDCONFIG=y
+          env: XEN_TARGET_ARCH=x86_64 XEN_CONFIG_EXPERT=y RANDCONFIG=y debug=n
         - compiler: gcc-5
-          env: XEN_TARGET_ARCH=x86_64
+          env: XEN_TARGET_ARCH=x86_64 debug=n
         - compiler: gcc
           env: XEN_TARGET_ARCH=x86_64 debug=y
         - compiler: gcc-5
           env: XEN_TARGET_ARCH=x86_64 debug=y
         - compiler: clang
-          env: XEN_TARGET_ARCH=x86_64 clang=y
+          env: XEN_TARGET_ARCH=x86_64 clang=y debug=n
         - compiler: clang-3.8
-          env: XEN_TARGET_ARCH=x86_64 clang=y
+          env: XEN_TARGET_ARCH=x86_64 clang=y debug=n
         - compiler: clang
           env: XEN_TARGET_ARCH=x86_64 clang=y debug=y
         - compiler: clang-3.8
           env: XEN_TARGET_ARCH=x86_64 clang=y debug=y
         - compiler: gcc
-          env: XEN_TARGET_ARCH=arm32 CROSS_COMPILE=arm-linux-gnueabihf-
+          env: XEN_TARGET_ARCH=arm32 CROSS_COMPILE=arm-linux-gnueabihf- debug=n
         - compiler: gcc
-          env: XEN_TARGET_ARCH=arm32 CROSS_COMPILE=arm-linux-gnueabihf- XEN_CONFIG_EXPERT=y RANDCONFIG=y
+          env: XEN_TARGET_ARCH=arm32 CROSS_COMPILE=arm-linux-gnueabihf- XEN_CONFIG_EXPERT=y RANDCONFIG=y debug=n
         - compiler: gcc
           env: XEN_TARGET_ARCH=arm32 CROSS_COMPILE=arm-linux-gnueabihf- debug=y
         - compiler: gcc
-          env: XEN_TARGET_ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-
+          env: XEN_TARGET_ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- debug=n
         - compiler: gcc
-          env: XEN_TARGET_ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- XEN_CONFIG_EXPERT=y RANDCONFIG=y
+          env: XEN_TARGET_ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- XEN_CONFIG_EXPERT=y RANDCONFIG=y debug=n
         - compiler: gcc
           env: XEN_TARGET_ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- debug=y
 addons:
Signature · 7 lines
2.4.10


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#3 lore raw

Re: [PATCH 3/3] travis: actually disable debug for non-debug

Quoted 10 lines · Doug Goldstein

Non-debug builds need to explicitly disable debug due to debug being defaulted to y in Config.mk

---
CC: Ian Jackson <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Keir Fraser <[email protected]>
CC: Tim Deegan <[email protected]>
CC: Andrew Cooper <[email protected]>

Here's a run with these 3 patches in them (the failures are due to another patch that enables building the toolstack which currently fails on Ubuntu):

https://travis-ci.org/cardoe/xen/builds/113561603

You can see that they won't cause regressions in the build process but just to be pedantic I'm building just these 3 patches at:

https://travis-ci.org/cardoe/xen/builds/113693114

But it will take a bit to complete.

Signature · 1 line
Doug Goldstein

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#4 lore raw

Re: [PATCH 3/3] travis: actually disable debug for non-debug

Quoted 16 lines · Doug Goldstein
Quoted 10 lines · Doug Goldstein

Non-debug builds need to explicitly disable debug due to debug being defaulted to y in Config.mk

---
CC: Ian Jackson <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Keir Fraser <[email protected]>
CC: Tim Deegan <[email protected]>
CC: Andrew Cooper <[email protected]>

Here's a run with these 3 patches in them (the failures are due to another patch that enables building the toolstack which currently fails on Ubuntu):

Quoted 9 lines

https://travis-ci.org/cardoe/xen/builds/113561603

You can see that they won't cause regressions in the build process but just to be pedantic I'm building just these 3 patches at:

https://travis-ci.org/cardoe/xen/builds/113693114

But it will take a bit to complete.

Full run: https://travis-ci.org/cardoe/xen/builds/113700670

That's with v2 of 1/3.

Signature · 1 line
Doug Goldstein

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

Reviewed-by on v1 1/3
#5 lore raw
In reply to Doug Goldstein
Quoted 20 lines · Doug Goldstein

Skip building of the coverity, smoke and master branches since they just fast forward from staging.

---
CC: Ian Jackson <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Keir Fraser <[email protected]>
CC: Tim Deegan <[email protected]>
CC: Andrew Cooper <[email protected]>

---
 .travis.yml | 6 ++++++
 1 file changed, 6 insertions(+)
.travis.yml +0 -0
index 6693af2..74fa14e 100644

.travis.yml line 9

Quoted 9 lines
.travis.yml +6 -0
@@ -1,6 +1,12 @@
 language: c
 dist: trusty
 sudo: required
+# don't test master, smoke and coverity branches
+branches:
+    except:
+        - master
+        - smoke
+        - coverity-tested/master

I would extend this to stable-* as well, as each stable-$X.$Y also fast-forwards from staging-$X.$Y

.travis.yml line 12

Quoted 3 lines
.travis.yml +0 -0
 matrix:
     include:
         - compiler: gcc

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#6 lore raw
Quoted 34 lines · Andrew Cooper
Quoted 20 lines · Doug Goldstein

Skip building of the coverity, smoke and master branches since they just fast forward from staging.

---
CC: Ian Jackson <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Keir Fraser <[email protected]>
CC: Tim Deegan <[email protected]>
CC: Andrew Cooper <[email protected]>

---
 .travis.yml | 6 ++++++
 1 file changed, 6 insertions(+)
.travis.yml +0 -0
index 6693af2..74fa14e 100644

.travis.yml line 9

Quoted 9 lines
.travis.yml +6 -0
@@ -1,6 +1,12 @@
 language: c
 dist: trusty
 sudo: required
+# don't test master, smoke and coverity branches
+branches:
+    except:
+        - master
+        - smoke
+        - coverity-tested/master

I would extend this to stable-* as well, as each stable-$X.$Y also fast-forwards from staging-$X.$Y

Quoted 2 lines

Will do. I'll post a v2 of this one patch for the same reasons I gave Jan.

Signature · 1 line
Doug Goldstein

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#7 lore raw
In reply to Doug Goldstein

.travis.yml line 9

Quoted 13 lines
Quoted 1 line
Quoted 1 line · On 04.03.16 at 15:46, <[email protected]> wrote:
.travis.yml +6 -0
@@ -1,6 +1,12 @@
 language: c
 dist: trusty
 sudo: required
+# don't test master, smoke and coverity branches
+branches:
+    except:
+        - master
+        - smoke
+        - coverity-tested/master

With the intention to perhaps make this (iirc) coverity-tested/smoke, perhaps use a wildcard: coverity-tested/* ?

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#8 lore raw
Quoted 17 lines · Jan Beulich

.travis.yml line 9

Quoted 13 lines
Quoted 1 line
Quoted 1 line · On 04.03.16 at 15:46, <[email protected]> wrote:
.travis.yml +6 -0
@@ -1,6 +1,12 @@
 language: c
 dist: trusty
 sudo: required
+# don't test master, smoke and coverity branches
+branches:
+    except:
+        - master
+        - smoke
+        - coverity-tested/master

With the intention to perhaps make this (iirc) coverity-tested/smoke, perhaps use a wildcard: coverity-tested/* ?

Quoted 2 lines

Jan

Yes. I can fix that up. Let me post a v2 and actually test it. They don't use globbing or wildcards but instead "Ruby regular expression syntax". I can't say I know Ruby so it might take one or two tries to get the pattern right.

The other two patches in this series can be merged independently (3/3 does depend on 2/3).

Signature · 1 line
Doug Goldstein

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel