Commit 1bdc1bfcd19732afe7e32cd2590ede7795b3184e

Authored by henryiii
Committed by GitHub
1 parent b6445426

macOS testing (#4)

* Restoring MacOS build

* Fixing mac build

* Updates for proper macOS name
Showing 2 changed files with 7 additions and 5 deletions
.travis.yml
... ... @@ -40,14 +40,16 @@ matrix:
40 40 packages:
41 41 - g++-4.7
42 42 env: COMPILER=4.7
  43 + - os: osx
43 44  
44 45 install:
45 46 - python -c 'import sys; print(sys.version_info[:])'
46   -- if [ "$CXX" = "g++" ]; then export CXX="g++-$COMPILER" CC="gcc-$COMPILER"; fi
  47 +- if [ "$CXX" = "g++" ] && [ "$TRAVIS_OS_NAME" = "linux" ]; then export CXX="g++-$COMPILER" CC="gcc-$COMPILER"; fi
47 48 - if [ "$CXX" = "clang++" ] && [ "$TRAVIS_OS_NAME" = "linux" ]; then export CXX="clang++-$COMPILER" CC="clang-$COMPILER"; fi
  49 +- if ["$TRAVIS_OS_NAME" = "osx" ] ; then export CXX="clang++" CC="clang"; fi
48 50 - DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
49   -- cd $TRAVIS_BUILD_DIR && . .ci/build_cmake.sh
50   -- cd $TRAVIS_BUILD_DIR && . .ci/build_doxygen.sh
  51 +- if [ "$TRAVIS_OS_NAME" = "linux" ] ; then cd $TRAVIS_BUILD_DIR && . .ci/build_cmake.sh ; fi
  52 +- if [ "$TRAVIS_OS_NAME" = "linux" ] ; then cd $TRAVIS_BUILD_DIR && . .ci/build_doxygen.sh ; fi
51 53 - cd "${DEPS_DIR}"
52 54 - if [ "$(python -c 'import sys; print(sys.version_info[0])')" = "2" ] ; then pip
53 55 install --user pathlib; fi
... ...
README.md
... ... @@ -15,8 +15,8 @@ An acceptable CLI parser library should be all of the following:
15 15 * Easy to include (i.e., header only, one file if possible, no external requirements): While many programs depend on Boost, that should not be a requirement if all you want is CLI parsing.
16 16 * Short Syntax: This is one of the main points of a CLI parser, it should make variables from the command line nearly as easy to define as any other variables. If most of your program is hidden in CLI parsing, this is a problem for readability.
17 17 * C++11 or better: Should work with GCC 4.7+ (such as GCC 4.8 on CentOS 7) or above, or Clang 3.5+, or MSVC 2015+. (Note: for CLI11, Clang 3.4 only fails because of tests, googlemock does not support it.)
18   -* Work on Linux, MacOS, and Windows.
19   -* Well tested using Travis (Linux and Mac) and [Appveyor](https://ci.appveyor.com/project/HenrySchreiner/cli11) (Windows).
  18 +* Work on Linux, macOS, and Windows.
  19 +* Well tested using Travis (Linux and macOS) and [Appveyor](https://ci.appveyor.com/project/HenrySchreiner/cli11) (Windows).
20 20 * Clear help printing.
21 21 * Standard shell idioms supported naturally, like grouping flags, a positional separator, etc.
22 22 * Easy to execute, with help, parse errors, etc. providing correct exit and details.
... ...