Skip to content

Commit

Permalink
[build] Using xenial dist in Travis with Java 11 (#1786)
Browse files Browse the repository at this point in the history
Resolves SonarCloud upload issue.
  • Loading branch information
maxsharabayko authored Feb 5, 2021
1 parent dcd62ca commit df55d70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
language: cpp
dist: trusty
jdk:
- oraclejdk11
dist: xenial

addons:
apt:
Expand Down Expand Up @@ -70,7 +68,7 @@ script:
- if [ "$TRAVIS_COMPILER" == "x86_64-w64-mingw32-g++" ]; then
export CC="x86_64-w64-mingw32-gcc";
export CXX="x86_64-w64-mingw32-g++";
cmake . -DCMAKE_BUILD_TYPE=$BUILD_TYPE $BUILD_OPTS -DENABLE_UNITTESTS="ON" -DUSE_OPENSSL_PC="OFF" -DOPENSSL_ROOT_DIR="$PWD/openssl" -DCMAKE_SYSTEM_NAME="Windows";
cmake . -DCMAKE_BUILD_TYPE=$BUILD_TYPE $BUILD_OPTS -DENABLE_UNITTESTS="OFF" -DUSE_OPENSSL_PC="OFF" -DOPENSSL_ROOT_DIR="$PWD/openssl" -DCMAKE_SYSTEM_NAME="Windows";
elif [ "$TRAVIS_OS_NAME" == "linux" ]; then
cmake . -DCMAKE_BUILD_TYPE=$BUILD_TYPE $BUILD_OPTS -DENABLE_UNITTESTS="ON";
elif [ "$TRAVIS_OS_NAME" == "osx" ]; then
Expand All @@ -90,8 +88,8 @@ script:
fi
- if [ "$TRAVIS_COMPILER" != "x86_64-w64-mingw32-g++" ]; then
./test-srt --gtest_filter="-TestMuxer.IPv4_and_IPv6:TestIPv6.v6_calls_v6*";
source ./scripts/collect-gcov.sh;
fi
- source ./scripts/collect-gcov.sh
- if (( "$RUN_CODECOV" )); then
bash <(curl -s https://codecov.io/bash);
fi
Expand Down
2 changes: 1 addition & 1 deletion apps/srt-file-transmit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ bool DoUpload(UriParser& ut, string path, string filename,
}
Verb() << "Sending buffer still: bytes=" << bytes << " blocks="
<< blocks;
this_thread::sleep_for(chrono::milliseconds(250));
srt::sync::this_thread::sleep_for(srt::sync::milliseconds_from(250));
}
}

Expand Down

0 comments on commit df55d70

Please sign in to comment.