-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
ci: add appveyor and travis config #330
Conversation
57ae423
to
bd8c36b
Compare
rebased on current master (after merge of #324) Appveyor: https://ci.appveyor.com/project/NeroBurner/glog/build/1.0.99 Compilation with MSVC works, but the stacktrace unittest hangs (as described in #328) as well as an error with the golden file at logging_unittest (described in #134) the latest rebase fixes the cross compilation with mingw-w64 on Ubuntu 18.04. The error with logging_unittest is now the same as with the MSVC version (described in #134) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also add the CI status icons to the README?
It would be nice, if every PR is checked upon submission as described at https://www.appveyor.com/docs/notifications/#github-pull-request. However, I'm not sure how difficult is it to add the bots. Hence, this is just an idea for future work.
toolchains/gcc-cxx11.cmake
Outdated
# *) cmake -H. -B_build -DCMAKE_TOOLCHAIN_FILE="${PWD}/toolchains/gcc.cmake" | ||
|
||
# find compiler | ||
find_program(CMAKE_C_COMPILER gcc) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To my knowledge, toolchain files are supposed to set only (cache) variables. CMake will ensure the path to the compiler to be valid. No need to do this manually.
toolchains/gcc-cxx11.cmake
Outdated
|
||
# set compiler | ||
set(CMAKE_C_COMPILER "${CMAKE_C_COMPILER}" CACHE PATH "C compiler" FORCE) | ||
set(CMAKE_CXX_COMPILER "${CMAKE_CXX_COMPILER}" CACHE PATH "C++ compiler" FORCE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redundant. CMake will in the sysroot anyway. Setting CMAKE_C_COMPILER
to gcc
should already work.
8aa5fa2
to
abe37c6
Compare
I added the Badges to the readme, but I also renamed I removed the extra find_program and set CACHE commands. Waiting for MVSC builds to finish (timeout after 1500 seconds each)
edit: I'll squash the toolchain file cleanup after the tests finish |
faa8495
to
8d8a585
Compare
CI of current master (after merge of |
8d8a585
to
316c9bb
Compare
rebased on current master 3267f3e (Merge pull request #331 from NeroBurner/fix_windows_logging_ut) CI:
Small Summary of test results:
@sergiud could you comment on the |
Add toolchain directory with cmake toolchain files used to find compilers and set C++ versions The following configurations are build on Windows using appveyor service: - enable MSVC 2015 SDK 8.1 - enable MSVC 2015 - enable MSVC 2017 - enable MSVC 2017 c++17 - enable mingw-cxx11 - enable mingw-gnuxx11 - enable mingw-cxx17 The following configurations are build on Linux using travis service: - enable Ubuntu 14.04 amd64/i386, C++11 - enable Ubuntu 16.04 amd64/i386, C++11 - enable Ubuntu 18.04 amd64 C++98, C++11, GNU++11, C++17 - enable mingw-w64 on Ubuntu 18.04 amd64, C++11, GNU++11, C++17 The tests for cross compiled mingw windows binaries are run using wine64
The stacktrace unittest hangs when compiled with MSVC. The default timeout is 1500 seconds. Change it to 30 seconds
316c9bb
to
b822104
Compare
@sergiud ping |
@NeroBurner Thank you! |
@shinh @ukai Could someone of you guys setup Travis and AppVeyor for glog? https://travis-ci.org/google/glog |
ci: add appveyor and travis config
My attempt to use the services Appveyor and Travis to enable Continuous Integration for Glog
Add toolchain directory with cmake toolchain files used to find
compilers and set C++ versions
The following configurations are build on Windows using appveyor
service:
The following configurations are build on Linux using travis service:
The tests for cross compiled mingw windows binaries are run using wine64