Skip to content

Commit

Permalink
Add osx to travis CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
elsid committed Sep 15, 2018
1 parent db2c499 commit c4035a5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 30 deletions.
54 changes: 25 additions & 29 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,47 +15,43 @@ addons:
services:
- docker

install:
- pip3 install --user --upgrade pip
- pip3 install --user docker-compose

matrix:
include:
- env:
- BUILD_SCRIPT='gcc debug'
- CMD_PREFIX=pg
- os: linux
env: BUILD_ARGS='pg docker gcc debug'

- env:
- BUILD_SCRIPT='gcc release'
- CMD_PREFIX=pg
- os: linux
env: BUILD_ARGS='pg docker gcc release'

- env:
- BUILD_SCRIPT='clang debug'
- CMD_PREFIX=pg
- os: linux
env: BUILD_ARGS='pg docker clang debug'

- env:
- BUILD_SCRIPT='clang release'
- CMD_PREFIX=pg
- os: linux
env: BUILD_ARGS='pg docker clang release'

- env:
- BUILD_SCRIPT='clang asan'
- CMD_PREFIX=pg
- os: linux
env: BUILD_ARGS='pg docker clang asan'

- env:
- BUILD_SCRIPT='clang ubsan'
- CMD_PREFIX=pg
- os: linux
env: BUILD_ARGS='pg docker clang ubsan'

- env:
- BUILD_SCRIPT='clang tsan'
- CMD_PREFIX=pg
- os: linux
env: BUILD_ARGS='pg docker clang tsan'

- env:
- BUILD_SCRIPT='gcc coverage'
- CMD_PREFIX=pg
- os: linux
env: BUILD_ARGS='pg docker gcc coverage'
after_success:
- >
docker run -ti --rm -v ${PWD}:/code $(bash <(curl -s https://codecov.io/env)) \
ozo_build /codecov.sh -f "!*tests*" -f "!*error.h*" -f "!*do_nothing.h*"
install:
- pip3 install --user --upgrade pip
- pip3 install --user docker-compose
- os: osx
osx_image: xcode10
install: brew install cmake boost postgresql ccache
env: BUILD_ARGS='clang debug'

script:
- scripts/build.sh ${CMD_PREFIX} docker ${BUILD_SCRIPT}
script: scripts/build.sh ${BUILD_ARGS}
2 changes: 1 addition & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ build() {
-DOZO_BUILD_PG_TESTS=$OZO_BUILD_PG_TESTS \
-DOZO_PG_TEST_CONNINFO="host=${POSTGRES_HOST} port=5432 dbname=${POSTGRES_DB} user=${POSTGRES_USER} password=${POSTGRES_PASSWORD}" \
${SOURCE_DIR}
make -j$(nproc)
make -j $(nproc || sysctl -n hw.ncpu)
if [[ $OZO_BUILD_PG_TESTS == "ON" ]]; then
${SOURCE_DIR}/scripts/wait_postgres.sh
fi
Expand Down

0 comments on commit c4035a5

Please sign in to comment.