Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit d687ddd

Browse files
authored
Add travis-ci config to run automated tests. (#3)
1 parent e3f39cd commit d687ddd

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
language: cpp
2+
os: linux
3+
dist: trusty
4+
sudo: false
5+
6+
before_install:
7+
- wget https://github.com/bazelbuild/bazel/releases/download/0.8.1/bazel-0.8.1-installer-linux-x86_64.sh
8+
- chmod +x bazel-0.8.1-installer-linux-x86_64.sh
9+
- ./bazel-0.8.1-installer-linux-x86_64.sh --user
10+
11+
script:
12+
- bazel build -k //...
13+
- bazel test -k //...

opencensus/common/internal/random_benchmark.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ void BM_Random64(benchmark::State& state) {
3232
BENCHMARK(BM_Random64);
3333

3434
} // namespace
35-
BENCHMARK_MAIN()
35+
BENCHMARK_MAIN();

opencensus/trace/internal/span_benchmark.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,4 @@ void BM_StartEndSpanAndSetStatus(benchmark::State& state) {
9090
BENCHMARK(BM_StartEndSpanAndSetStatus);
9191

9292
} // namespace
93-
BENCHMARK_MAIN()
93+
BENCHMARK_MAIN();

opencensus/trace/internal/span_id_benchmark.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,4 @@ BENCHMARK(BM_SpanIdCopyTo);
8282
} // namespace
8383
} // namespace trace
8484
} // namespace opencensus
85-
BENCHMARK_MAIN()
85+
BENCHMARK_MAIN();

0 commit comments

Comments
 (0)