Skip to content

Commit

Permalink
Support both MacOS 10.4 and 10.5 in travis
Browse files Browse the repository at this point in the history
  • Loading branch information
welchr committed May 28, 2020
1 parent ec97e96 commit 877bd40
Showing 1 changed file with 28 additions and 19 deletions.
47 changes: 28 additions & 19 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,39 @@ jobs:
dist: bionic
compiler: gcc
env: LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
before_install:
- |
sudo apt update
sudo apt install build-essential cmake gfortran locales zlib1g-dev liblzma-dev
sudo apt install python3 python3-setuptools python3-pip python3-virtualenv
sudo locale-gen en_US.UTF-8
sudo pip3 install cget
cget install -f requirements.txt
- os: osx
osx_image: xcode11.3
compiler: clang
before_install:
- |
brew install cmake zlib xz python3
brew cask install gfortran
sudo python3 -m pip install cget
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
cget install -f requirements.txt
cache: pip
- os: osx
osx_image: xcode11.4
compiler: clang
before_install:
- |
brew install cmake zlib xz python3
brew cask install gfortran
sudo python3 -m pip install cget
export CPATH=$(xcrun --show-sdk-path)/usr/include
export CFLAGS="${CFLAGS} -Wno-nullability-completeness -Wno-expansion-to-defined -Wno-undef"
cget install -f requirements.txt
before_install:
- |
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
brew install cmake zlib xz python3
brew cask install gfortran
sudo python3 -m pip install cget
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
cget install -f requirements.txt
fi
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
sudo apt update
sudo apt install build-essential cmake gfortran locales zlib1g-dev liblzma-dev
sudo apt install python3 python3-setuptools python3-pip python3-virtualenv
sudo locale-gen en_US.UTF-8
sudo pip3 install cget
cget install -f requirements.txt
fi
cache: pip

install:
- rm -rf build && mkdir build && cd build
Expand Down

0 comments on commit 877bd40

Please sign in to comment.