git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] travis-ci: run gcc-7 on linux-gcc jobs

From
Thomas Braun <thomas.braun@virtuell-zuhause.de>
Date
May 13, 2018, 12:45 UTC
Message-ID
<10b243d8-fc81-a172-768d-9b47e94a24b0@virtuell-zuhause.de>
In-Reply-To
<20180513091752.14003-1-pclouds@gmail.com>
Am 13.05.2018 um 11:17 schrieb Nguyễn Thái Ngọc Duy:
Show 26 quoted lines
> 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

Show 17 quoted lines
>  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)
> 
Previous: Nguyễn Thái Ngọc DuyNext: Nguyễn Thái Ngọc Duy
Message 2 of 4 in “travis-ci: run gcc-7 on linux-gcc jobs”
  1. travis-ci: run gcc-7 on linux-gcc jobsNguyễn Thái Ngọc Duy, May 13, 2018
  2. Thomas BraunMay 13, 2018
  3. travis-ci: run gcc-8 on linux-gcc jobsNguyễn Thái Ngọc Duy, May 19, 2018
  4. Junio C HamanoMay 21, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.