This repository has been archived by the owner on Aug 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add more compilers to Travis Signed-off-by: Isaac Hier <[email protected]> * Override CMake options directly in Travis Signed-off-by: Isaac Hier <[email protected]> * Add script to upload coverage, build crossdock test Signed-off-by: Isaac Hier <[email protected]> * Fix Travis tokens Signed-off-by: Isaac Hier <[email protected]> * Add crossdock to build Signed-off-by: Isaac Hier <[email protected]> * Try reevaluating matrix env Signed-off-by: Isaac Hier <[email protected]> * Run bash with -x Signed-off-by: Isaac Hier <[email protected]> * Use -x in script Signed-off-by: Isaac Hier <[email protected]> * Try using env to pass variables Signed-off-by: Isaac Hier <[email protected]> * Fix command syntax Signed-off-by: Isaac Hier <[email protected]> * Correct build step Signed-off-by: Isaac Hier <[email protected]> * Fixes for static builds and crossdock Signed-off-by: Isaac Hier <[email protected]> * Fix crossdock build Signed-off-by: Isaac Hier <[email protected]> * Remove crossdock build from Travis matrix for now Signed-off-by: Isaac Hier <[email protected]> * Add Travis plugin deployment Signed-off-by: Isaac Hier <[email protected]>
- Loading branch information
Showing
7 changed files
with
123 additions
and
41 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
FROM gcc:7.2 | ||
|
||
WORKDIR / | ||
RUN curl -O https://cmake.org/files/v3.10/cmake-3.10.0-rc5-Linux-x86_64.sh && bash cmake-3.10.0-rc5-Linux-x86_64.sh --skip-license | ||
|
||
COPY . /app/jaegertracing | ||
RUN rm -rf /app/jaegertracing/build && \ | ||
mkdir /app/jaegertracing/build && \ | ||
cd /app/jaegertracing/build && \ | ||
cmake -DCMAKE_BUILD_TYPE=Debug -DJAEGERTRACING_BUILD_CROSSDOCK=ON .. && \ | ||
make crossdock -j3 | ||
ADD ./build/crossdock / | ||
|
||
ENV AGENT_HOST_PORT=jaeger-agent:5775 | ||
ENV SAMPLING_SERVER_URL=http://test_driver:5778/sampling | ||
|
||
EXPOSE 8080-8082 | ||
|
||
CMD ["/app/jaegertracing/build/crossdock"] | ||
CMD ["/crossdock"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
# Copyright (c) 2018 Uber Technologies, Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
set -e | ||
|
||
function main() { | ||
set -x | ||
if ! [[ "${CMAKE_OPTIONS}" =~ "-DJAEGERTRACING_COVERAGE=ON" ]]; then | ||
exit 0 | ||
fi | ||
unset -x | ||
|
||
local project_dir | ||
project_dir=$(git rev-parse --show-toplevel) | ||
cd "$project_dir" || exit 1 | ||
|
||
local gcov_tool | ||
case "$CC" in | ||
gcc*) gcov_tool=${CC/gcc/gcov} | ||
;; | ||
*) gcov_tool="$project_dir/scripts/llvm-gcov.sh" | ||
;; | ||
esac | ||
find build -name '*.gcno' -exec "$gcov_tool" {} \; | ||
bash <(curl -s https://codecov.io/bash) || \ | ||
echo "Codecov did not collect coverage reports" | ||
} | ||
|
||
main |