Migrate away from broken macos on Travis (#7745)

Summary:
Add macos+cmake build on CircleCI instead.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/7745

Test Plan: CI

Reviewed By: riversand963

Differential Revision: D25352864

Pulled By: pdillinger

fbshipit-source-id: 6b0a328cbe715bc3b43d70e919a27c834edcf079
main
Peter Dillinger 4 years ago committed by Facebook GitHub Bot
parent 61932cdf1d
commit e34b2e9f41
  1. 24
      .circleci/config.yml
  2. 7
      .travis.yml

@ -17,6 +17,13 @@ commands:
command: | command: |
HOMEBREW_NO_AUTO_UPDATE=1 brew install pyenv HOMEBREW_NO_AUTO_UPDATE=1 brew install pyenv
install-cmake-on-macos:
steps:
- run:
name: Install cmake on macos
command: |
HOMEBREW_NO_AUTO_UPDATE=1 brew install cmake
increase-max-open-files-on-macos: increase-max-open-files-on-macos:
steps: steps:
- run: - run:
@ -93,11 +100,23 @@ jobs:
steps: steps:
- increase-max-open-files-on-macos - increase-max-open-files-on-macos
- install-pyenv-on-macos - install-pyenv-on-macos
- pre-steps
- install-gflags-on-macos - install-gflags-on-macos
- pre-steps
- run: ulimit -S -n 1048576 && OPT=-DCIRCLECI make V=1 J=32 -j32 check | .circleci/cat_ignore_eagain - run: ulimit -S -n 1048576 && OPT=-DCIRCLECI make V=1 J=32 -j32 check | .circleci/cat_ignore_eagain
- post-steps - post-steps
build-macos-cmake:
macos:
xcode: 11.3.0
steps:
- increase-max-open-files-on-macos
- install-pyenv-on-macos
- install-cmake-on-macos
- install-gflags-on-macos
- pre-steps
- run: ulimit -S -n 1048576 && (mkdir build && cd build && cmake -DWITH_GFLAGS=0 .. && make V=1 -j32) | .circleci/cat_ignore_eagain
- post-steps
build-linux: build-linux:
machine: machine:
image: ubuntu-1604:202007-01 image: ubuntu-1604:202007-01
@ -506,6 +525,9 @@ workflows:
build-macos: build-macos:
jobs: jobs:
- build-macos - build-macos
build-macos-cmake:
jobs:
- build-macos-cmake
build-cmake-mingw: build-cmake-mingw:
jobs: jobs:
- build-cmake-mingw - build-cmake-mingw

@ -105,6 +105,13 @@ matrix:
os: linux os: linux
arch: ppc64le arch: ppc64le
env: JOB_NAME=cmake env: JOB_NAME=cmake
# Exclude all osx since it should be covered by CircleCI
- if: type = pull_request AND commit_message !~ /FULL_CI/
os: osx
env: TEST_GROUP=platform_dependent
- if: type = pull_request AND commit_message !~ /FULL_CI/
os: osx
env: JOB_NAME=cmake
# NB: the cmake build is a partial java test # NB: the cmake build is a partial java test
- if: type = pull_request AND commit_message !~ /FULL_CI/ - if: type = pull_request AND commit_message !~ /FULL_CI/
os: osx os: osx

Loading…
Cancel
Save