Skip to content

Commit

Permalink
Add macos pipeline (#1965)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackgerrits committed Jul 16, 2019
1 parent ba09cdb commit 1839b34
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .pipelines/build-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
pool:
vmImage: 'macOS-10.14'

pr:
- master

steps:
- bash: .scripts/macos/restore.sh $(Build.SourcesDirectory)
displayName: 'Restore dependencies'
- bash: .scripts/macos/build.sh $(Build.SourcesDirectory)
displayName: 'Build vw.sln'
- bash: .scripts/macos/test.sh $(Build.SourcesDirectory)
displayName: 'Run tests'
11 changes: 11 additions & 0 deletions .scripts/macos/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
set -e
set -x

cd $1
mkdir -p build
cd build

cmake .. -DCMAKE_BUILD_TYPE=Release -DWARNINGS=Off -DDO_NOT_BUILD_VW_C_WRAPPER=On -DBUILD_JAVA=Off -DBUILD_PYTHON=Off -DBUILD_TESTS=On
NUM_PROCESSORS=$(cat nprocs.txt)
make all -j ${NUM_PROCESSORS}
7 changes: 7 additions & 0 deletions .scripts/macos/restore.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
set -e
set -x

pip install six
brew install cmake
brew install boost
10 changes: 10 additions & 0 deletions .scripts/macos/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
set -e
set -x

cd $1
mkdir -p build
cd build

NUM_PROCESSORS=$(cat nprocs.txt)
make test_with_output -j ${NUM_PROCESSORS}

0 comments on commit 1839b34

Please sign in to comment.