git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH] travis-ci: run gcc-7 on linux-gcc jobs
@ 2018-05-13  9:17 Nguyễn Thái Ngọc Duy
  2018-05-13 12:45 ` Thomas Braun
  2018-05-19  4:32 ` [PATCH v2] travis-ci: run gcc-8 " Nguyễn Thái Ngọc Duy
  0 siblings, 2 replies; 4+ messages in thread
From: Nguyễn Thái Ngọc Duy @ 2018-05-13  9:17 UTC (permalink / raw)
  To: git; +Cc: Nguyễn Thái Ngọc Duy

Switch from gcc-4.8 to gcc-7. Newer compilers come with more warning
checks (usually in -Wextra).  Since -Wextra is enabled in developer
mode (which is also enabled in travis), this lets travis report more
warnings before other people do it.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
---
 .travis.yml        | 3 +++
 ci/lib-travisci.sh | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/.travis.yml b/.travis.yml
index 5f5ee4f3bd..a77f5f5bd5 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,10 +16,13 @@ compiler:
 
 addons:
   apt:
+    sources:
+    - ubuntu-toolchain-r-test
     packages:
     - language-pack-is
     - git-svn
     - apache2
+    - gcc-7
 
 matrix:
   include:
diff --git a/ci/lib-travisci.sh b/ci/lib-travisci.sh
index 109ef280da..ef2848fd45 100755
--- a/ci/lib-travisci.sh
+++ b/ci/lib-travisci.sh
@@ -99,6 +99,9 @@ export DEFAULT_TEST_TARGET=prove
 export GIT_PROVE_OPTS="--timer --jobs 3 --state=failed,slow,save"
 export GIT_TEST_OPTS="--verbose-log -x"
 export GIT_TEST_CLONE_2GB=YesPlease
+if [ "$jobname" = linux-gcc ]; then
+	export CC=gcc-7
+fi
 
 case "$jobname" in
 linux-clang|linux-gcc)
-- 
2.17.0.705.g3525833791


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

* Re: [PATCH] travis-ci: run gcc-7 on linux-gcc jobs
  2018-05-13  9:17 [PATCH] travis-ci: run gcc-7 on linux-gcc jobs Nguyễn Thái Ngọc Duy
@ 2018-05-13 12:45 ` Thomas Braun
  2018-05-19  4:32 ` [PATCH v2] travis-ci: run gcc-8 " Nguyễn Thái Ngọc Duy
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Braun @ 2018-05-13 12:45 UTC (permalink / raw)
  To: Nguyễn Thái Ngọc Duy, git

Am 13.05.2018 um 11:17 schrieb Nguyễn Thái Ngọc Duy:
> Switch from gcc-4.8 to gcc-7. Newer compilers come with more warning
> checks (usually in -Wextra).  Since -Wextra is enabled in developer
> mode (which is also enabled in travis), this lets travis report more
> warnings before other people do it.
> 
> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
> ---
>  .travis.yml        | 3 +++
>  ci/lib-travisci.sh | 3 +++
>  2 files changed, 6 insertions(+)
> 
> diff --git a/.travis.yml b/.travis.yml
> index 5f5ee4f3bd..a77f5f5bd5 100644
> --- a/.travis.yml
> +++ b/.travis.yml
> @@ -16,10 +16,13 @@ compiler:
>  
>  addons:
>    apt:
> +    sources:
> +    - ubuntu-toolchain-r-test
>      packages:
>      - language-pack-is
>      - git-svn
>      - apache2
> +    - gcc-7

You could also use gcc-8 here as that is already present according to [1].

[1]:
https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+packages

>  matrix:
>    include:
> diff --git a/ci/lib-travisci.sh b/ci/lib-travisci.sh
> index 109ef280da..ef2848fd45 100755
> --- a/ci/lib-travisci.sh
> +++ b/ci/lib-travisci.sh
> @@ -99,6 +99,9 @@ export DEFAULT_TEST_TARGET=prove
>  export GIT_PROVE_OPTS="--timer --jobs 3 --state=failed,slow,save"
>  export GIT_TEST_OPTS="--verbose-log -x"
>  export GIT_TEST_CLONE_2GB=YesPlease
> +if [ "$jobname" = linux-gcc ]; then
> +	export CC=gcc-7
> +fi
>  
>  case "$jobname" in
>  linux-clang|linux-gcc)
> 


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

* [PATCH v2] travis-ci: run gcc-8 on linux-gcc jobs
  2018-05-13  9:17 [PATCH] travis-ci: run gcc-7 on linux-gcc jobs Nguyễn Thái Ngọc Duy
  2018-05-13 12:45 ` Thomas Braun
@ 2018-05-19  4:32 ` Nguyễn Thái Ngọc Duy
  2018-05-21  6:46   ` Junio C Hamano
  1 sibling, 1 reply; 4+ messages in thread
From: Nguyễn Thái Ngọc Duy @ 2018-05-19  4:32 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano, Thomas Braun,
	Nguyễn Thái Ngọc Duy

Switch from gcc-4.8 to gcc-8. Newer compilers come with more warning
checks (usually in -Wextra).  Since -Wextra is enabled in developer
mode (which is also enabled in travis), this lets travis report more
warnings before other people do it.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
---
 v2 switches from gcc-7 to gcc-8. I initially ignored gcc 8 because it
 was too new. But it built 'pu' ok and 8.1 was already out so the
 first wave of bugs should have been gone by now.

 .travis.yml        | 3 +++
 ci/lib-travisci.sh | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/.travis.yml b/.travis.yml
index 5f5ee4f3bd..4d4e26c9df 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,10 +16,13 @@ compiler:
 
 addons:
   apt:
+    sources:
+    - ubuntu-toolchain-r-test
     packages:
     - language-pack-is
     - git-svn
     - apache2
+    - gcc-8
 
 matrix:
   include:
diff --git a/ci/lib-travisci.sh b/ci/lib-travisci.sh
index 109ef280da..ceecc889ca 100755
--- a/ci/lib-travisci.sh
+++ b/ci/lib-travisci.sh
@@ -99,6 +99,9 @@ export DEFAULT_TEST_TARGET=prove
 export GIT_PROVE_OPTS="--timer --jobs 3 --state=failed,slow,save"
 export GIT_TEST_OPTS="--verbose-log -x"
 export GIT_TEST_CLONE_2GB=YesPlease
+if [ "$jobname" = linux-gcc ]; then
+	export CC=gcc-8
+fi
 
 case "$jobname" in
 linux-clang|linux-gcc)
-- 
2.17.0.705.g3525833791


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

* Re: [PATCH v2] travis-ci: run gcc-8 on linux-gcc jobs
  2018-05-19  4:32 ` [PATCH v2] travis-ci: run gcc-8 " Nguyễn Thái Ngọc Duy
@ 2018-05-21  6:46   ` Junio C Hamano
  0 siblings, 0 replies; 4+ messages in thread
From: Junio C Hamano @ 2018-05-21  6:46 UTC (permalink / raw)
  To: Nguyễn Thái Ngọc Duy; +Cc: git, Thomas Braun

Nguyễn Thái Ngọc Duy  <pclouds@gmail.com> writes:

>  v2 switches from gcc-7 to gcc-8. I initially ignored gcc 8 because it
>  was too new. But it built 'pu' ok and 8.1 was already out so the
>  first wave of bugs should have been gone by now.

I also liked the choice to ignore v8 for the same reason, but if it
is already mature (or maturing enough), let's use it.

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

end of thread, other threads:[~2018-05-21  6:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-13  9:17 [PATCH] travis-ci: run gcc-7 on linux-gcc jobs Nguyễn Thái Ngọc Duy
2018-05-13 12:45 ` Thomas Braun
2018-05-19  4:32 ` [PATCH v2] travis-ci: run gcc-8 " Nguyễn Thái Ngọc Duy
2018-05-21  6:46   ` Junio C Hamano

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).