Skip to content

Commit 901f87a

Browse files
authored
Test gcc-4.8 as part of CI (open-telemetry#19)
* Add CI test for gcc48. * Add gcc_48_test to circleci * Use bazel to test old compiler. * Fix gcc-48 CI. * Use CC instead of CXX
1 parent 15bc3c5 commit 901f87a

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

.circleci/config.yml

+12
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,17 @@ jobs:
1717
path: ~/build/Testing/Temporary/LastTest.log
1818
destination: Test.log
1919

20+
gcc_48_test:
21+
resource_class: xlarge
22+
docker:
23+
- image: ubuntu:18.04
24+
steps:
25+
- checkout
26+
- run: ./ci/setup_ci_environment.sh
27+
- run: ./ci/install_bazelisk.sh
28+
- run: ./ci/install_gcc48.sh
29+
- run: CC=/usr/bin/g++-4.8 ./ci/do_ci.sh bazel.test
30+
2031
bazel_test:
2132
resource_class: xlarge
2233
docker:
@@ -48,6 +59,7 @@ workflows:
4859
build_and_test:
4960
jobs:
5061
- cmake_test
62+
- gcc_48_test
5163
- bazel_test
5264
- osx_test
5365
- windows

ci/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ ADD install_bazelisk.sh /setup-ci
88

99
RUN /setup-ci/setup_ci_environment.sh \
1010
&& /setup-ci/setup_cmake.sh \
11+
&& /setup-ci/install_gcc48.sh \
1112
&& /setup-ci/install_bazelisk.sh

ci/install_gcc48.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
set -e
4+
apt-get update
5+
apt-get install --no-install-recommends --no-install-suggests -y \
6+
g++-4.8

0 commit comments

Comments
 (0)