Skip to content

Commit

Permalink
ci: Add macos.
Browse files Browse the repository at this point in the history
  • Loading branch information
dewyatt authored and ronaldtse committed Feb 19, 2019
1 parent 480b22d commit 1b823cd
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 24 deletions.
19 changes: 16 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,19 @@ matrix:
- env: BUILD_MODE=normal GPG_VERSION=beta
compiler: clang
stage: test
# normal (macos)
# gpg stable
- env: BUILD_MODE=normal GPG_VERSION=stable
os: osx
osx_image: xcode10.1
compiler: clang
stage: cache
script: true
- env: BUILD_MODE=normal GPG_VERSION=stable
os: osx
osx_image: xcode10.1
compiler: clang
stage: test

# clang sanitizers
# gpg stable
Expand Down Expand Up @@ -104,9 +117,6 @@ cache:
before_install:
- . ci/env.inc.sh
- ./ci/before_install.sh
- gpg --recv-keys 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
- rvm get stable
- rvm use 2.3.4 --install --binary --fuzzy

install:
- travis_wait 50 ./ci/install.sh
Expand All @@ -118,6 +128,9 @@ after_success:
- ./ci/success.sh

addons:
homebrew:
brewfile: true

coverity_scan:

# GitHub project metadata
Expand Down
13 changes: 13 additions & 0 deletions Brewfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
brew "openssl@1.1"
brew "make"
brew "cmake"
brew "autoconf"
brew "automake"
brew "libtool"
brew "pkg-config"
brew "cmocka"
brew "gnupg"
brew "wget"
brew "python@2"
brew "ruby@2.5"

22 changes: 1 addition & 21 deletions ci/before_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,7 @@ set -ex
. ci/utils.inc.sh

macos_install() {
brew update
packages="
openssl
make
cmake
autoconf
automake
libtool
pkg-config
cmocka
gnupg
gnutls
wget
python2
"
# gnutls for manual compile of gnupg
for p in ${packages}; do
brew install ${p} || brew upgrade ${p}
done

mkdir -p ${CMOCKA_INSTALL}
[ "${CI-}" = true ] || brew bundle
}

freebsd_install() {
Expand Down

0 comments on commit 1b823cd

Please sign in to comment.