From 14828d9695ab54272fee0dab35a489180c20f2ea Mon Sep 17 00:00:00 2001 From: Mike Taves Date: Wed, 25 Sep 2019 10:58:10 +1200 Subject: Rearrange Travis CI scripts to be more modular * Split global before_install for apt and pip * Use -qq option for apt-get, which implies -y * Use list of targets with apt-get rather than one-per-line * Use local variables for mingw32/install.sh * Show version info for cppcheck, pip and python * Simplify clang+llvm-6 path --- docs/source/community/code_contributions.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'docs/source') diff --git a/docs/source/community/code_contributions.rst b/docs/source/community/code_contributions.rst index c3e835c8..3c8850bd 100644 --- a/docs/source/community/code_contributions.rst +++ b/docs/source/community/code_contributions.rst @@ -117,18 +117,19 @@ Preliminary step: install clang. For example: wget http://releases.llvm.org/6.0.0/clang+llvm-6.0.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz tar xJf clang+llvm-6.0.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz + mv clang+llvm-6.0.0-x86_64-linux-gnu-ubuntu-14.04 clang+llvm-6 Run configure under the scan-build utility of clang: :: - ./clang+llvm-6.0.0-x86_64-linux-gnu-ubuntu-14.04/bin/scan-build ./configure + ./clang+llvm-6/bin/scan-build ./configure Build under scan-build: :: - ./clang+llvm-6.0.0-x86_64-linux-gnu-ubuntu-14.04/bin/scan-build make [-j8] + ./clang+llvm-6/bin/scan-build make [-j8] If CSA finds errors, they will be emitted during the build. And in which case, at the end of the build process, scan-build will emit a warning message @@ -137,7 +138,7 @@ is with someling like :: - ./clang+llvm-6.0.0-x86_64-linux-gnu-ubuntu-14.04/bin/scan-view /tmp/scan-build-2018-03-15-121416-17476-1 + ./clang+llvm-6/bin/scan-view /tmp/scan-build-2018-03-15-121416-17476-1 This will open a web browser with the interactive report. -- cgit v1.2.3 From 4013aeaaf7796cfff6b97668870ce4a2af3d509a Mon Sep 17 00:00:00 2001 From: Mike Taves Date: Wed, 25 Sep 2019 11:47:40 +1200 Subject: Upgrade testing from trusty to xenial, and also: * From openjdk-7 via apt to openjdk-11 via Travis CI xenial's $JAVA_HOME * From mingw 4.8 -> 5.3, as supported by xenial * clang+llvm for csa kept at version 6.0.0, but for ubuntu-16.04 * Furthermore xenial implicitly has many upgrades, specifically: - gcc 4.8.4 -> 5.4.0 - clang 4.0.0 -> 5.0.0 - cmake 3.9.2 -> 3.12.4 - python 3.4.3 -> 3.5.2 * cppcheck version kept at 1.61 (for trusty) due to many false positives with version 1.72 (for xenial) * Community code contribution documentation simplified to remove version of cppcheck, as this may outdated with updates to scripts --- docs/source/community/code_contributions.rst | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'docs/source') diff --git a/docs/source/community/code_contributions.rst b/docs/source/community/code_contributions.rst index 3c8850bd..7e354a70 100644 --- a/docs/source/community/code_contributions.rst +++ b/docs/source/community/code_contributions.rst @@ -88,12 +88,7 @@ cppcheck static analyzer ~~~~~~~~~~~~~~~~~~~~~~~~ You can run locally ``scripts/cppcheck.sh`` that is a wrapper script around the -cppcheck utility. It is known to work with cppcheck 1.61 of Ubuntu Trusty 14.0, -since this is what is currently used on Travis-CI -(``travis/linux_gcc/before_install.sh``). -At the time of writing, this also works with cppcheck 1.72 of Ubuntu Xenial -16.04, and latest cppcheck -master. +cppcheck utility. This tool is used as part of the quality control of the code. cppcheck can have false positives. In general, it is preferable to rework the code a bit to make it more 'obvious' and avoid those false positives. When not @@ -115,9 +110,9 @@ Preliminary step: install clang. For example: :: - wget http://releases.llvm.org/6.0.0/clang+llvm-6.0.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz - tar xJf clang+llvm-6.0.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz - mv clang+llvm-6.0.0-x86_64-linux-gnu-ubuntu-14.04 clang+llvm-6 + wget http://releases.llvm.org/6.0.0/clang+llvm-6.0.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz + tar xJf clang+llvm-6.0.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz + mv clang+llvm-6.0.0-x86_64-linux-gnu-ubuntu-16.04 clang+llvm-6 Run configure under the scan-build utility of clang: -- cgit v1.2.3