-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding .travis.yml using clang for MacOSX,
Adding table and badges for build status
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
os: osx | ||
osx_image: xcode10.2 | ||
language: cpp | ||
script: | ||
- brew update-reset && brew update | ||
- brew upgrade cmake | ||
- brew install flex | ||
- brew install make | ||
- brew install -cc=clang llvm@8 | ||
- export PATH="/usr/local/opt/llvm@8/bin:$PATH:/usr/local/lib:/usr/local/opt/llvm/bin" | ||
- export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig:/usr/local/lib" | ||
- mkdir build && cd build | ||
- cmake -DCMAKE_CXX_COMPILER="clang++" .. | ||
- make && make test | ||
before_cache: | ||
- brew cleanup | ||
cache: | ||
directories: | ||
- /usr/local/Homebrew | ||
- $HOME/Library/Caches/Homebrew |
This file contains 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