48 Commits

Author SHA1 Message Date
Derek Mauro
6a5938233b Add support for Bzlmod for the next release
https://bazel.build/external/overview#bzlmod

Bzlmod will be the default in a future Bazel release.
By default it requires projects to be registered with the
Bazel Central Registry (https://registry.bazel.build/) and
thus uses regular releases by default.

Users that want to "live-at-head" can still do this through
with overrides (https://bazel.build/external/module#overrides).

This change updates GoogleTest dependencies to use released versions.
CI uses Bzlmod except in the case of linux_gcc-floor, which will
keep testing the old WORKSPACE-based dependency system.

PiperOrigin-RevId: 601489729
Change-Id: I6be52034eba0d0e5fe12110e5e82879305cf73ff
2024-01-25 10:27:52 -08:00
Derek Mauro
7c07a86369 Update CI builds to use Bazel 7.0.0
--features=external_include_paths has been removed from Windows builds
since it appears cause build command errors currently
PiperOrigin-RevId: 597020418
Change-Id: Ie37be0d05f3a154ab0d3c3f7d39b4e2c0ed650a3
2024-01-09 13:02:32 -08:00
Derek Mauro
61332bd7e8 CI: Update the Linux hybrid-latest docker container used for testing
The following are the major updates
  * LLVM 17 branch (https://github.com/llvm/llvm-project b744f4c99cf91155c74a3c92db6f1335232ff3d)
  * GCC 13.2
  * CMake 3.27.1
  * Bazel 6.2.1

PiperOrigin-RevId: 558818264
Change-Id: Ib08d8331e2a8b2d68a702670451beaaac5d266f4
2023-08-21 09:50:40 -07:00
Derek Mauro
13b1900717 Remove the Win64 arch from the CMake Generator since
this can't be used with MSVC 2022

We also have to use Python 3.4 since that is what the base image has,
however, I will create a new image soon that has a modern version
of Python.

PiperOrigin-RevId: 520010732
Change-Id: Icf2420fd97d2bbc310382a17793045b6e16d62bb
2023-03-28 06:28:10 -07:00
Derek Mauro
88af49efa7 Migrate CI builds to MSVC 2022
PiperOrigin-RevId: 519792199
Change-Id: Ic821b264bf1aef5e03f22fb0e288dd9d56fd536b
2023-03-27 12:10:12 -07:00
Tom Hughes
a798c2f102 Add -Wundef to the CI scripts when building with Bazel
The CMake build already adds -Wundef for gcc/clang. This change makes sure that
the gcc/clang Bazel builds also compile correctly with -Wundef (#3267).

PiperOrigin-RevId: 514864451
Change-Id: I7798a4a4c68d037e23625db24ee29df454367734
2023-03-07 15:58:12 -08:00
Dino Radakovic
d9a4bbcaf2 Update googletest's test docker containers
PiperOrigin-RevId: 511500508
Change-Id: Ib686f93d317b95ac9b9bcb0a5566500316ba1929
2023-02-22 08:18:38 -08:00
Tom Hughes
2f2e72bae9 Fix compiler flags in Linux presubmit
CXX_FLAGS should be CXXFLAGS and the quoting was wrong.
As a result, "-Werror -Wdeprecated" was not being applied.

https://cmake.org/cmake/help/latest/envvar/CXXFLAGS.html

PiperOrigin-RevId: 506656655
Change-Id: Ic5e861be3b9c32257eb9aabb845c931f3cba7122
2023-02-02 10:16:20 -08:00
Dino Radakovic
88c59752c0 Add Windows CI script
PiperOrigin-RevId: 481680362
Change-Id: I87b2b71427a8ad2603f5445d6ef794c3fa84746e
2022-10-17 10:39:48 -07:00
Derek Mauro
7cafeff7bd Rollback 4fa8cfe3f4dee8975ee02d98633a5245ab67c6d7
Breaks the intended C++ version on some CI builds

PiperOrigin-RevId: 474022587
Change-Id: I41a58893802c90864e0f2cc3d15e6c169c59146d
2022-09-13 08:15:24 -07:00
Keith Smiley
91c3669f21
bazel: move -std=c++14 to .bazelrc
Bazel defaults to -std=c++11 on macOS which gtest doesn't support.
2022-08-19 11:11:26 -07:00
Derek Mauro
7274ec1864 Add --features=external_include_paths to Bazel CI to ignore warnings
from dependencies

PiperOrigin-RevId: 467244441
Change-Id: Iefa65474d8c62e7c4c942957dc8e275715076e5f
2022-08-12 10:46:39 -07:00
Derek Mauro
4219e7254c Remove the Bazel provided default cxxopt -std=c++0x and replace it
with -std=c++14 when testing with GCC 5.

PiperOrigin-RevId: 458502826
Change-Id: I83637a222b5c0a54e55d93ce7fdbc878af27b250
2022-07-01 10:53:54 -07:00
Derek Mauro
96f51426e4 Remove support for C++11
v1.12.x is the last branch to support C++11
Future releases will require at least C++14

PiperOrigin-RevId: 458250106
Change-Id: Ibee2248649ff3c13daaa179135887848bf730f3f
2022-06-30 09:53:51 -07:00
Derek Mauro
7df7853ea0 Update GCC floor container used by CI to fix the Bazel cache error
PiperOrigin-RevId: 456323043
Change-Id: I86e3d52b72b51c2d4e96f536daa7f84a52c598f5
2022-06-21 12:27:37 -07:00
Copybara-Service
b53547bf01 Merge pull request #3797 from glandium:issue3514
PiperOrigin-RevId: 444444700
Change-Id: I8ac5cc96cc6eb9d583fa7e3fb304ef3dcaa95b5b
2022-04-25 20:29:56 -07:00
Derek Mauro
c9461a9b55 Update GCC/Clang Linux tests to use Bazel 5.0.0
PiperOrigin-RevId: 429400664
Change-Id: I6454cf52cb2fc616a96663823de997591b63dfae
2022-02-17 14:19:07 -08:00
Derek Mauro
4e82924686 Update test Docker image to GCC 11.2, Clang 14 (prerelease),
CMake 3.22.1, and Bazel 4.2.2

PiperOrigin-RevId: 421814198
Change-Id: Ief4e39d7f077089f10afdc8d63cc1e51dc18e97f
2022-01-14 06:52:59 -08:00
Abseil Team
b2dda9ed83 Googletest export
Use newer Docker images in CI

The new floor image contains GCC 5.5.0, like the old one.

PiperOrigin-RevId: 402402465
2021-10-13 12:28:00 -04:00
dmauro
8ceecc27c7 Googletest export
Updates Linux docker image to use Bazel 4.1.0 and GCC 11.1
Updates Bazel dependencies
Removes the last usage of the deprecated and removed Python2

PiperOrigin-RevId: 375759184
2021-06-02 17:54:36 -04:00
Abseil Team
965f8ecbfd Googletest export
Generalize root directory in CI scripts

PiperOrigin-RevId: 367628939
2021-04-09 09:04:04 -07:00
Abseil Team
79b556eff6 Googletest export
Add CI test scripts

PiperOrigin-RevId: 360931988
2021-03-09 10:59:01 -08:00
dmauro
9e975a022e Googletest export
Disable Travis CI. The migration to travis-ci.com is incompatible with
security policy. These tests are now run on Kokoro.

PiperOrigin-RevId: 355438343
2021-02-05 10:41:23 -08:00
dmauro
6c58c11d54 Googletest export
Remove platformio tests. This currently uses gcc 4.8.2 which is no
longer supported.

PiperOrigin-RevId: 351667999
2021-01-13 20:59:51 -05:00
dmauro
d737069111 Googletest export
Fix the TravisCI build by updating the required tools

PiperOrigin-RevId: 344882646
2020-12-02 18:23:22 -05:00
dmauro
859bfe8981 Googletest export
Update Travis CI to use Ubuntu Bionic in some cases

PiperOrigin-RevId: 313639562
2020-05-28 19:55:32 -04:00
Gennadiy Rozental
b0e53e2d64 Merge pull request #2797 from Jyun-Neng:master
PiperOrigin-RevId: 307604377
2020-05-01 17:11:17 -04:00
Ji Jyun-Neng
879fd9b452 Remove duplicate codes existed in get-nprocessors.sh 2020-04-05 01:09:56 +08:00
Arthur O'Dwyer
5504ded3ab Fix a typo in .travis.yml
The old code was trying to pass -Wgnu-zero-variadic-macro-arguments
as part of CXXFLAGS, but it forgot the quotation marks needed around
whitespace. This meant that option was ignored:
https://travis-ci.org/github/google/googletest/jobs/666534177#L760

Unfortunately, the codebase is not remotely clean with respect to that
warning option. It fails like this:
https://travis-ci.org/github/Quuxplusone/googletest/jobs/668118135

So, remove that failing configuration from the test matrix until
someone has time to look at it.
2020-03-28 13:06:55 -04:00
misterg
dc1ca9ae4c Googletest export
fix OSS Travis Builds -remove hardcoded updated package from brew

PiperOrigin-RevId: 271863378
2019-09-29 15:30:31 -04:00
misterg
27e17f7851 Googletest export
Stop depending on the abseil master

PiperOrigin-RevId: 263789087
2019-08-16 12:50:16 -04:00
misterg
1d721a7a9d Googletest export
Move Googletest OSS bazel builds to latest bazel.
The latest bazel ( 0.27.0 as of now ) does not run on trusty.

PiperOrigin-RevId: 253829774
2019-06-18 14:25:41 -04:00
Gennadiy Civil
60b9298653 Fixing CI break by going to bazel 0.26.1 2019-06-17 16:57:54 -04:00
Gennadiy Civil
807d590a22 Finish removing autotools 2019-06-13 16:40:44 -04:00
misterg
c4ccab33aa Googletest export
Internal Change

PiperOrigin-RevId: 233614147
2019-02-12 13:20:40 -05:00
Abseil Team
dda0df3b0a Googletest export
Internal change

PiperOrigin-RevId: 232362580
2019-02-12 13:20:05 -05:00
Enji Cooper
9df5475b82 Test out changes with clang/OSX each PR using Travis CI
This will help ensure that test coverage isn't missed when changes that
can impact OSX with clang are submitted. Although not perfect, testing
changes on OSX with clang is an ok proxy [for now] for testing changes on
FreeBSD with clang (testing on FreeBSD is non-trivial, as Travis CI doesn't
support operating systems other than Linux and OSX).

In order to support this, install the packages via homebrew using a
`addons::homebrew::packages` block (similar to `addons::apt::packages`
for Ubuntu), as documented in the Travis CI docs
( https://docs.travis-ci.com/user/installing-dependencies/ ). While
here, try pushing apt* calls into the Travis config for Ubuntu, instead
of delaying the equivalent calls in the `ci/*.sh` scripts. Keep the
`ci/*.sh` scripts for ease of testing locally (and extend the OSX one to
install gcc 4.9 and llvm 3.9, like the travis config does).

In order to accomodate this change (and because the homebrew package for
llvm@3.9 doesn't automatically add clang*-3.9 to `$PATH`), `$PATH` needs
to be adjusted to find the llvm@3.9 toolchain.

Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
2019-02-04 12:19:27 -08:00
Chris Johnson
2c8ab3f18b
feat: Add initial support for PlatformIO and Arduino 2018-12-04 21:44:39 -06:00
Ryan Yee
a83429f5d3 fix typo 2018-10-11 01:13:09 -07:00
Gennadiy Civil
c34ecf1ff0
Revert "Add clang format check to one of the builds" 2018-09-25 10:05:30 -07:00
Gennadiy Civil
76e1045729 typo 2018-09-25 02:55:08 -04:00
Gennadiy Civil
2d3466be47 Add clang format check to one of the builds to provide indication that formatting is incorrect 2018-09-25 02:42:15 -04:00
Gennadiy Civil
fab2252646 Changing clang tp 3.9 as 3.7 no longer works on Travis 2018-08-29 21:58:47 -04:00
Scott Graham
95ec42d95f Add no-exception and no-rtti to build matrix 2018-05-01 09:34:13 -07:00
Gennadiy Civil
e6ec8bc52f Merges and also adding new bazel build mode 2018-01-31 12:05:18 -05:00
Carlos O'Ryan
ec2b0c3912
Build both googletest and googlemock. 2017-12-24 12:22:46 -05:00
Carlos O'Ryan
75b85d5382
Create a autotools-based build for Travis.
When this build works, we know the autoconf support is working.
2017-12-24 12:22:17 -05:00
Carlos O'Ryan
bc3320b7f1
Implement bazel-based builds in Travis.
This refactored test build scripts to enable
bazel-build scripts in Travis.
2017-12-08 20:59:07 -05:00