Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove travis config #7522

Merged
merged 3 commits into from Sep 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/labeler.yml
Expand Up @@ -84,9 +84,7 @@ documentation:

CI:
- '.github/**/*'
- '.travis/**/*'
- '.bazelci/**/*'
- .travis.yml

grpc:
- grpc/**/*
Expand Down
215 changes: 0 additions & 215 deletions .travis.yml

This file was deleted.

8 changes: 0 additions & 8 deletions conan/appveyor/build.py

This file was deleted.

8 changes: 0 additions & 8 deletions conan/appveyor/install.py

This file was deleted.

8 changes: 0 additions & 8 deletions conan/build.py
Expand Up @@ -21,14 +21,6 @@ def get_branch():

def get_version():
version = get_branch()
if os.getenv("TRAVIS", False):
version = os.getenv("TRAVIS_BRANCH")

if os.getenv("APPVEYOR", False):
version = os.getenv("APPVEYOR_REPO_BRANCH")
if os.getenv("APPVEYOR_REPO_TAG") == "true":
version = os.getenv("APPVEYOR_REPO_TAG_NAME")

match = re.search(r"v(\d+\.\d+\.\d+.*)", version)
if match:
return match.group(1)
Expand Down
14 changes: 0 additions & 14 deletions conan/travis/build.sh

This file was deleted.

22 changes: 0 additions & 22 deletions conan/travis/install.sh

This file was deleted.

3 changes: 0 additions & 3 deletions include/flatbuffers/util.h
Expand Up @@ -685,9 +685,6 @@ bool SetGlobalTestLocale(const char *locale_name,
bool ReadEnvironmentVariable(const char *var_name,
std::string *_value = nullptr);

// MSVC specific: Send all assert reports to STDOUT to prevent CI hangs.
void SetupDefaultCRTReportMode();

enum class Case {
kUnknown = 0,
// TheQuickBrownFox
Expand Down
3 changes: 0 additions & 3 deletions src/flatc_main.cpp
Expand Up @@ -52,9 +52,6 @@ void LogCompilerError(const std::string &err) {
} // namespace flatbuffers

int main(int argc, const char *argv[]) {
// Prevent Appveyor-CI hangs.
flatbuffers::SetupDefaultCRTReportMode();

const std::string flatbuffers_version(flatbuffers::FLATBUFFERS_VERSION());

std::unique_ptr<flatbuffers::BfbsGenerator> bfbs_gen_lua =
Expand Down
23 changes: 0 additions & 23 deletions src/util.cpp
Expand Up @@ -426,29 +426,6 @@ bool ReadEnvironmentVariable(const char *var_name, std::string *_value) {
return true;
}

void SetupDefaultCRTReportMode() {
// clang-format off

#ifdef _MSC_VER
// By default, send all reports to STDOUT to prevent CI hangs.
// Enable assert report box [Abort|Retry|Ignore] if a debugger is present.
const int dbg_mode = (_CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG) |
(IsDebuggerPresent() ? _CRTDBG_MODE_WNDW : 0);
(void)dbg_mode; // release mode fix
// CrtDebug reports to _CRT_WARN channel.
_CrtSetReportMode(_CRT_WARN, dbg_mode);
_CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDOUT);
// The assert from <assert.h> reports to _CRT_ERROR channel
_CrtSetReportMode(_CRT_ERROR, dbg_mode);
_CrtSetReportFile(_CRT_ERROR, _CRTDBG_FILE_STDOUT);
// Internal CRT assert channel?
_CrtSetReportMode(_CRT_ASSERT, dbg_mode);
_CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDOUT);
#endif

// clang-format on
}

std::string ConvertCase(const std::string &input, Case output_case,
Case input_case) {
if (output_case == Case::kKeep) return input;
Expand Down
2 changes: 0 additions & 2 deletions tests/test_assert.cpp
Expand Up @@ -43,8 +43,6 @@ void InitTestEngine(TestFailEventListener listener) {
setvbuf(stdout, nullptr, _IONBF, 0);
setvbuf(stderr, nullptr, _IONBF, 0);

flatbuffers::SetupDefaultCRTReportMode();

// clang-format off

#if defined(FLATBUFFERS_MEMORY_LEAK_TRACKING_MSVC)
Expand Down