Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add initial azure pipelines definition
test macos build
- Loading branch information
Showing
4 changed files
with
71 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
jobs: | ||
- job: macOS | ||
displayName: macOS CI Tests | ||
|
||
variables: | ||
testRunTitle: '$(build.sourceBranchName)-macos' | ||
testRunPlatform: macos | ||
|
||
pool: | ||
vmImage: xcode9-macos10.13 | ||
|
||
steps: | ||
- template: ./macos-steps.yml | ||
parameters: | ||
buildConfiguration: Release | ||
generator: Visual Studio 15 2017 Win64 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
steps: | ||
- checkout: self | ||
clean: true | ||
fetchDepth: 5 | ||
submodules: true | ||
|
||
- bash: | | ||
brew update | ||
brew install cmake ccache pkg-config arpack eigen glpk hdf5 json-c lapack lzo nlopt snappy xz | ||
displayName: Install dependencies | ||
|
||
- task: CMake@1 | ||
displayName: Setup | ||
inputs: | ||
cmakeArgs: -DBUILD_EXAMPLES=OFF -DBUNDLE_JSON=OFF -DBUNDLE_NLOPT=OFF -DENABLE_TESTING=ON -DENABLE_COVERAGE=OFF -DBUILD_META_EXAMPLES=OFF .. | ||
|
||
- script: make -j4 | ||
displayName: Build | ||
workingDirectory: build | ||
|
||
- script: ctest --output-on-failure -j 2 | ||
displayName: Test | ||
workingDirectory: build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
steps: | ||
- checkout: self | ||
clean: true | ||
fetchDepth: 5 | ||
submodules: true | ||
|
||
- task: CondaEnvironment@1 | ||
displayName: Install dependencies | ||
inputs: | ||
createCustomEnvironment: True | ||
environmentName: shogun | ||
packageSpecs: 'python=3 setuptools numpy scipy eigen rxcpp cmake snappy zlib ctags ply ninja' | ||
createOptions: '-q' | ||
|
||
- task: CMake@1 | ||
displayName: Setup | ||
inputs: | ||
cmakeArgs: -G "${{ parameters.generator }}" -DCMAKE_BUILD_TYPE=${{ parameters.buildConfiguration }} -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%\Library -DBUILD_META_EXAMPLES=OFF -DENABLE_TESTING=ON .. | ||
|
||
|
||
- task: VSBuild@1 | ||
displayName: Build | ||
inputs: | ||
solution: '$(Build.ArtifactStagingDirectory)/build/shogun.sln' | ||
platform: x64 | ||
configuration: ${{ parameters.buildConfiguration }} | ||
|
||
- script: ctest -j%NUMBER_OF_PROCESSORS% -C ${{ parameters.buildConfiguration }} -V | ||
displayName: Test | ||
workingDirectory: $(Build.ArtifactStagingDirectory)/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters