https://github.com/root-project/root
Revision 66d42dba449b37ca23b68f25768d49765b0318ae authored by Sergey Linev on 06 January 2020, 16:57:55 UTC, committed by Sergey Linev on 07 January 2020, 08:56:38 UTC
One has to use binary mode to be able read file content, otherwise Windows may change lines ending and result will not fit into the preallocated string
1 parent bccd1d5
Tip revision: 66d42dba449b37ca23b68f25768d49765b0318ae authored by Sergey Linev on 06 January 2020, 16:57:55 UTC
[http] fix files reading on Windows
[http] fix files reading on Windows
Tip revision: 66d42db
.travis.yml
sudo: false
language: cpp
os: linux
compiler: clang
cache:
ccache: true
# Do not build our sync branch.
branches:
only:
- master
- Travis*
# Without the top-level env, no job will be allowed to fail.
env:
matrix:
# Abort all builds on a single failing matrix entry.
fast_finish: true
exclude:
# Note: Workaround travis-ci/travis-ci#4681
# Exclude default job which lacks our included environment variables.
- os: linux
include:
- env: TOOL=clang-format
script: &format_script
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then .ci/format_script.sh; fi
- env: TOOL=clang-tidy-analyzer
before_script: ©_headers
- echo "Copying and generating header files."
- echo -en "travis_fold:start:install.headers"
- .ci/copy_headers.sh
- echo -en 'travis_fold:end:install.headers\\r'
script: &tidy_script
- |
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
.ci/tidy_script.sh
fi
- env: TOOL=clang-tidy-modernize
before_script: *copy_headers
script: *tidy_script
- env: TOOL=minuit2-standalone
script: cd math/minuit2 && .ci/make_and_test.sh
allow_failures:
# clang-tidy-modernize is still experimental
- env: TOOL=clang-tidy-modernize
# a lot of code doesn't follow clang-format yet
- env: TOOL=clang-format
# This will never run since there is not a clang-tidy only TOOL
# elif [[ "$TRAVIS_EVENT_TYPE" = "cron" ]] && [[ $TOOL == 'clang-tidy' ]]; then
# # We need to ignore our vendor drops.
# FILES_REGEX='^.*root\/(?!interpreter\/|core\/clib)'
#
# echo "Running clang-tidy-3.9 against branch $TRAVIS_BRANCH."
# echo "run-clang-tidy-3.9.py -j4 -clang-tidy-binary $(which clang-tidy-3.9) -checks=-*,clang-analyzer-* $FILES_REGEX"
# run-clang-tidy-3.9.py -j4 -clang-tidy-binary $(which clang-tidy-3.9) -checks=-*,clang-analyzer-* $FILES_REGEX
# fi
on_failure: echo "Showing current directory contents" && ls -la
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...