-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
travis: Add macOS 10.5.5. and Xcode 12.0
- Loading branch information
1 parent
7d483df
commit d06a41b
Showing
1 changed file
with
18 additions
and
13 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 |
---|---|---|
@@ -1,29 +1,34 @@ | ||
language: cpp | ||
|
||
os: linux | ||
|
||
# Use the latest supported distro, Focal, released in April 2020… | ||
os: | ||
- linux | ||
- osx | ||
dist: focal | ||
|
||
git: | ||
depth: 1 | ||
osx_image: xcode12 | ||
|
||
compiler: | ||
- clang | ||
- gcc | ||
- clang | ||
|
||
env: | ||
matrix: | ||
- BUILD_TYPE="Release" | ||
- BUILD_TYPE="Debug" | ||
- BUILD_TYPE="Release" | ||
- BUILD_TYPE="Debug" | ||
|
||
jobs: | ||
exclude: | ||
- os: osx | ||
compiler: gcc | ||
|
||
git: | ||
depth: 1 | ||
|
||
before_install: | ||
- sudo apt-get install -y libassimp-dev | ||
- sudo apt-get install -y libglfw3-dev | ||
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install -y libassimp-dev libglfw3-dev; fi | ||
|
||
script: | ||
- mkdir build || exit 1 | ||
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then generator='Xcode'; else generator='Ninja'; fi | ||
- pushd build && { cmake -DCMAKE_CXX_FLAGS="-Wall" \ | ||
-DCMAKE_BUILD_TYPE="${BUILD_TYPE}" \ | ||
-G Ninja ..; popd; } || exit 1 | ||
-G "$generator" ..; popd; } || exit 1 | ||
- cmake --build build || exit 1 |