All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH 1/1] travis: use various gcc and clang versions + using containers
@ 2017-01-12 11:06 Petr Vorel
  2017-01-12 12:26 ` Cyril Hrubis
  0 siblings, 1 reply; 3+ messages in thread
From: Petr Vorel @ 2017-01-12 11:06 UTC (permalink / raw)
  To: ltp

Using containers is declared to be faster, but does not allow us to use
sudo => install into $HOME.

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
Used gcc: 4.6, 4.7, 4.8. 4.9, 5, 6
Used clang: 3.3, 3.5, 3.8, 3.9
We can have quite a lot of versions, say what you prefer.

See result:
https://travis-ci.org/pevik-travis/ltp/builds/191263858
---
 .travis.yml | 96 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 93 insertions(+), 3 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 16c0cd477..b71b7c5d1 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,9 +1,99 @@
-sudo: required
-
 language: c
 
+matrix:
+    include:
+        - os: linux
+          compiler: gcc
+          addons:
+              apt:
+                  sources: ['ubuntu-toolchain-r-test']
+                  packages: ['gcc-4.6']
+          env:
+              - COMPILER=gcc-4.6
+
+        - os: linux
+          compiler: gcc
+          addons:
+              apt:
+                  sources: ['ubuntu-toolchain-r-test']
+                  packages: ['gcc-4.7']
+          env:
+              - COMPILER=gcc-4.7
+
+        - os: linux
+          compiler: gcc
+          addons:
+              apt:
+                  sources: ['ubuntu-toolchain-r-test']
+                  packages: ['gcc-4.8']
+          env:
+              - COMPILER=gcc-4.8
+
+        - os: linux
+          compiler: gcc
+          addons:
+              apt:
+                  sources: ['ubuntu-toolchain-r-test']
+                  packages: ['gcc-4.9']
+          env:
+              - COMPILER=gcc-4.9
+
+        - os: linux
+          compiler: gcc
+          addons:
+              apt:
+                  sources: ['ubuntu-toolchain-r-test']
+                  packages: ['gcc-5']
+          env:
+              - COMPILER=gcc-5
+
+        - os: linux
+          compiler: gcc
+          addons:
+              apt:
+                  sources: ['ubuntu-toolchain-r-test']
+                  packages: ['gcc-6']
+          env:
+              - COMPILER=gcc-6
+
+        - os: linux
+          compiler: clang
+          addons:
+              apt:
+                  sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.3']
+                  packages: ['clang-3.3']
+          env:
+              - COMPILER=clang-3.3
+
+        - os: linux
+          compiler: clang
+          addons:
+              apt:
+                  sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5']
+                  packages: ['clang-3.5']
+          env:
+              - COMPILER=clang-3.5
+
+        - os: linux
+          compiler: clang
+          addons:
+              apt:
+                  sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.8']
+                  packages: ['clang-3.8']
+          env:
+              - COMPILER=clang-3.8
+
+        - os: linux
+          compiler: clang
+          addons:
+              apt:
+                  sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise']
+                  packages: ['clang-3.9']
+          env:
+              - COMPILER=clang-3.9
+
 notifications:
     email:
         - ltp@lists.linux.it
 
-script: make autotools && ./configure --with-open-posix-testsuite --with-realtime-testsuite && make -j$(getconf _NPROCESSORS_ONLN) && make -j$(getconf _NPROCESSORS_ONLN) install
+script: make autotools && ./configure --prefix $HOME/ltp --with-open-posix-testsuite --with-realtime-testsuite && make CXX=$COMPILER -j$(getconf _NPROCESSORS_ONLN) && make -j$(getconf _NPROCESSORS_ONLN) install
-- 
2.11.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [LTP] [PATCH 1/1] travis: use various gcc and clang versions + using containers
  2017-01-12 11:06 [LTP] [PATCH 1/1] travis: use various gcc and clang versions + using containers Petr Vorel
@ 2017-01-12 12:26 ` Cyril Hrubis
  2017-01-12 15:37   ` Petr Vorel
  0 siblings, 1 reply; 3+ messages in thread
From: Cyril Hrubis @ 2017-01-12 12:26 UTC (permalink / raw)
  To: ltp

Hi!
> +        - os: linux
> +          compiler: clang
> +          addons:
> +              apt:
> +                  sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise']
> +                  packages: ['clang-3.9']
> +          env:
> +              - COMPILER=clang-3.9

Hmm, does this actually work? Looking at the log for this particular
build:

Setting environment variables from .travis.yml

$ export COMPILER=clang-3.9
$ export CC=clang

$ clang --version
clang version 3.4 (tags/RELEASE_34/final)

Shouldn't we set the compiler: to clang-3.9 as well, export
CC=clang-3.9 or something?

-- 
Cyril Hrubis
chrubis@suse.cz

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [LTP] [PATCH 1/1] travis: use various gcc and clang versions + using containers
  2017-01-12 12:26 ` Cyril Hrubis
@ 2017-01-12 15:37   ` Petr Vorel
  0 siblings, 0 replies; 3+ messages in thread
From: Petr Vorel @ 2017-01-12 15:37 UTC (permalink / raw)
  To: ltp

Hi Cyril,

> $ export COMPILER=clang-3.9
> $ export CC=clang

> $ clang --version
> clang version 3.4 (tags/RELEASE_34/final)

> Shouldn't we set the compiler: to clang-3.9 as well, export
> CC=clang-3.9 or something?
It's not like that, travis sets CC itself, so I'm setting COMPILER variable and pass it to
make (see and of the patch).

I just need fix it to v2 as I'm passing CXX - wrong variable, as we have C not, C++. Now
it's really not working :-(.
I'll explain it more in v2.


Kind regards,
Petr

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-01-12 15:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-12 11:06 [LTP] [PATCH 1/1] travis: use various gcc and clang versions + using containers Petr Vorel
2017-01-12 12:26 ` Cyril Hrubis
2017-01-12 15:37   ` Petr Vorel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.