This repository was archived by the owner on Apr 19, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 453
Add a working Mac CI build #35
Merged
lefticus
merged 5 commits into
cpp-best-practices:master
from
ddalcino:add-mac-ci-build
Apr 22, 2020
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
04cda6a
Add a (mostly) working mac build to travis.yml
ddalcino 15a6678
Fix compiler detection for AppleClang and compiler flags for catch_ma…
valerioformato 970404b
Fix compiler detection for AppleClang in Sanitizers.cmake
valerioformato 8d07c20
update fmt to 6.1.2
ddalcino f983437
attempt to fix windows build
ddalcino File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,24 +1,59 @@ | ||
| dist: bionic | ||
| sudo: false | ||
| language: cpp | ||
|
|
||
| addons: | ||
| apt: | ||
| sources: | ||
| - ubuntu-toolchain-r-test | ||
| packages: | ||
| - gcc-snapshot | ||
| - doxygen | ||
|
|
||
| install: | ||
| - pip install --user conan cmake | ||
|
|
||
| jobs: | ||
| include: | ||
| - os: osx | ||
| compiler: gcc | ||
| osx_image: xcode11.2 # includes gcc-9 by default | ||
| env: | ||
| # Conan is at: ${HOME}/Library/Python/2.7/bin: we need this in the path | ||
| - PATH="${HOME}/Library/Python/2.7/bin:${PATH}" | ||
| - GCC_VER="9" | ||
| - MATRIX_EVAL="CC=gcc-${GCC_VER} && CXX=g++-${GCC_VER}" | ||
| after_script: | ||
| - bash <(curl -s https://codecov.io/bash) -x /usr/bin/gcov-${GCC_VER} | ||
| - os: osx | ||
| compiler: clang | ||
| osx_image: xcode11.2 | ||
| env: | ||
| - PATH="${HOME}/Library/Python/2.7/bin:${PATH}" | ||
| - MATRIX_EVAL="" | ||
| - os: linux | ||
| dist: bionic | ||
| compiler: gcc | ||
| env: | ||
| - GCC_VER="9" | ||
| - MATRIX_EVAL="CC=gcc-${GCC_VER} && CXX=g++-${GCC_VER}" | ||
|
|
||
| addons: | ||
| apt: | ||
| sources: | ||
| - ubuntu-toolchain-r-test | ||
| packages: | ||
| # I couldn't get ${GCC_VER} in here successfully | ||
| - gcc-9 | ||
| - g++-9 | ||
| - doxygen | ||
| after_script: | ||
| - bash <(curl -s https://codecov.io/bash) -x /usr/bin/gcov-${GCC_VER} | ||
| - os: linux | ||
| dist: bionic | ||
| compiler: clang | ||
| env: | ||
| - MATRIX_EVAL="CC=clang && CXX=clang++" | ||
| addons: { apt: { packages: ['doxygen'] } } | ||
|
|
||
|
|
||
| before_script: | ||
| - eval "${MATRIX_EVAL}" | ||
|
|
||
| script: | ||
| - CXX=/usr/bin/gcc-10 CC=/usr/bin/g++-10 cmake -D ENABLE_COVERAGE:BOOL=TRUE . | ||
| - cmake --build . -- -j2 | ||
| - cmake -D ENABLE_COVERAGE:BOOL=TRUE . | ||
| - cmake --build . -- -j2 | ||
| - ctest -j2 | ||
| - bash <(curl -s https://codecov.io/bash) -x /usr/bin/gcov-5 | ||
|
|
||
|
|
||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This looks like a strange thing to change, but the Mac build consistently fails when fmt is set to 6.0.0. It also fails on my Fedora box. Updating fmt to 6.1.2 appears to correct the issue.
See this issue for reference: lefticus/cpp_weekly_game_project#3