Skip to content

Commit

Permalink
remove travis config (#7522)
Browse files Browse the repository at this point in the history
* remove travis config

* remove more travis and appveyor stuff

* remove appveyor specific things
  • Loading branch information
dbaileychess committed Sep 10, 2022
1 parent b901598 commit 89b1f5a
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 308 deletions.
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

0 comments on commit 89b1f5a

Please sign in to comment.