Skip to contentSkip to conversation

Travis-CI: use sugulite environment

PATCH Applied Nicolas Iooss 2 participants 3 messages Aug 5, 2017 – Aug 7, 2017 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Travis-CI: use sugulite environment

Travis-CI provides several environments for Ubuntu 14.04 Trusty. It chooses the one that best matches the needs defined in .travis.yml depending on a complex algorithm.

In order to test several C compilers, Python versions and Ruby versions, we need the full image, which is named "sugulite".

For future reference, there are some notes about using the full image on https://github.com/travis-ci/packer-templates/pull/454 and
https://github.com/travis-ci/docs-travis-ci-com/issues/1267#issuecomment-316016312
and https://blog.travis-ci.com/2017-06-21-trusty-updates-2017-Q2-launch

---
 .travis.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
.travis.yml +2 -1
index 481ea7dae8bb..27c0013d6e9e 100644
@@ -29,9 +29,10 @@ env:
     - PYVER=python3.6 RUBYLIBVER=2.2
     - PYVER=python3.6 RUBYLIBVER=2.3
 
-# Use Travis-CI Ubuntu 14.04 Trusty infrastructure
+# Use Travis-CI Ubuntu 14.04 Trusty infrastructure, "full image" variant
 sudo: required
 dist: trusty
+group: sugilite
 
 # Install SELinux userspace utilities dependencies
 addons:
Signature · 1 line
2.13.3
#1 lore raw

PATCH 2/2 Travis-CI: do not test gold linkers with clang

clang does not know -fuse-ld=gold. It only needs -flto, which automatically adds -plugin=LLVMgold.so to the linker command line, but this does not work on Travis-CI because the gold linker plugin is not installed:

    /usr/bin/ld: /usr/local/clang-3.9.0/bin/../lib/LLVMgold.so: error
    loading plugin: /usr/local/clang-3.9.0/bin/../lib/LLVMgold.so:
    cannot open shared object file: No such file or directory

Disable in the build matrix the combination of linking with special linkers with using clang.

---
 .travis.yml | 7 +++++++
 1 file changed, 7 insertions(+)
.travis.yml +7 -0
index 27c0013d6e9e..1b761496dd12 100644
@@ -29,6 +29,13 @@ env:
     - PYVER=python3.6 RUBYLIBVER=2.2
     - PYVER=python3.6 RUBYLIBVER=2.3
 
+matrix:
+  exclude:
+    - compiler: clang
+      env: PYVER=python3.6 RUBYLIBVER=2.4 LINKER=gold
+    - compiler: clang
+      env: PYVER=python3.6 RUBYLIBVER=2.4 LINKER=bfd
+
 # Use Travis-CI Ubuntu 14.04 Trusty infrastructure, "full image" variant
 sudo: required
 dist: trusty
Signature · 1 line
2.13.3
#2 lore raw

Re: [PATCH 2/2] Travis-CI: do not test gold linkers with clang

Quoted 6 lines · Nicolas Iooss

clang does not know -fuse-ld=gold. It only needs -flto, which automatically adds -plugin=LLVMgold.so to the linker command line, but
this does not work on Travis-CI because the gold linker plugin is not installed:

Quoted 8 lines

    /usr/bin/ld: /usr/local/clang-3.9.0/bin/../lib/LLVMgold.so: error loading plugin: /usr/local/clang-3.9.0/bin/../lib/LLVMgold.so:
    cannot open shared object file: No such file or directory

Disable in the build matrix the combination of linking with special linkers with using clang.

Thanks, applied both patches.

Quoted 23 lines

---
 .travis.yml | 7 +++++++

 1 file changed, 7 insertions(+)
.travis.yml +0 -0
index 27c0013d6e9e..1b761496dd12 100644
@@ -29,6 +29,13 @@ env:

     - PYVER=python3.6 RUBYLIBVER=2.2
     - PYVER=python3.6 RUBYLIBVER=2.3

.travis.yml +7 -0
+matrix:
+  exclude:
+    - compiler: clang
+      env: PYVER=python3.6 RUBYLIBVER=2.4 LINKER=gold
+    - compiler: clang
+      env: PYVER=python3.6 RUBYLIBVER=2.4 LINKER=bfd
+

 # Use Travis-CI Ubuntu 14.04 Trusty infrastructure, "full image" variant
 sudo: required
 dist: trusty