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
6 changed files
with
182 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,60 @@ | ||
jobs: | ||
- job: libshogun | ||
displayName: Linux libshogun | ||
|
||
pool: | ||
vmImage: ubuntu-16.04 | ||
|
||
variables: | ||
testRunTitle: '$(build.sourceBranchName)-debian' | ||
testRunPlatform: debian | ||
imageName: 'shogun/shogun-dev' | ||
|
||
steps: | ||
- template: ./docker-steps.yml | ||
|
||
- job: python | ||
displayName: Python Interface | ||
dependsOn: libshogun | ||
|
||
pool: | ||
vmImage: ubuntu-16.04 | ||
|
||
variables: | ||
testRunTitle: '$(build.sourceBranchName)-debian' | ||
testRunPlatform: debian | ||
imageName: 'shogun/shogun-dev' | ||
|
||
steps: | ||
- template: ./docker-steps.yml | ||
parameters: | ||
cmakeOptions: 'DINTERFACE_PYTHON=ON' | ||
|
||
- job: macOS | ||
displayName: macOS CI Tests | ||
|
||
variables: | ||
testRunTitle: '$(build.sourceBranchName)-macos' | ||
testRunPlatform: macos | ||
|
||
pool: | ||
vmImage: xcode9-macos10.13 | ||
|
||
steps: | ||
- template: ./macos-steps.yml | ||
|
||
- job: Windows | ||
displayName: Windows CI Tests | ||
pool: | ||
vmImage: 'vs2017-win2016' | ||
|
||
strategy: | ||
matrix: | ||
py36: | ||
BUILD_CONFIGURATION: Release | ||
GENERATOR: Visual Studio 15 2017 Win64 | ||
CONDA_PY: "3.6.*" | ||
CONDA_ENV: shogun | ||
|
||
steps: | ||
- template: ./windows-steps.yml |
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,41 @@ | ||
steps: | ||
- checkout: self | ||
clean: true | ||
fetchDepth: 5 | ||
submodules: true | ||
|
||
- task: docker@0 | ||
displayName: Setup | ||
inputs: | ||
action: 'Run an image' | ||
imageName: $(imageName) | ||
volumes: | | ||
$(build.sourcesDirectory):/src | ||
$(build.binariesDirectory):/build | ||
workDir: '/build' | ||
containerCommand: 'cmake -DENABLE_TESTING=ON ${{ parameters.cmakeOptions }} /src' | ||
detached: false | ||
|
||
- task: docker@0 | ||
displayName: Build | ||
inputs: | ||
action: 'Run an image' | ||
imageName: $(imageName) | ||
volumes: | | ||
$(build.sourcesDirectory):/src | ||
$(build.binariesDirectory):/build | ||
workDir: '/build' | ||
containerCommand: 'make -s' | ||
detached: false | ||
|
||
- task: docker@0 | ||
displayName: Test | ||
inputs: | ||
action: 'Run an image' | ||
imageName: $(imageName) | ||
volumes: | | ||
$(build.sourcesDirectory):/src | ||
$(build.binariesDirectory):/build | ||
workDir: '/build' | ||
containerCommand: 'ctest --output-on-failure -j 2' | ||
detached: false |
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,27 @@ | ||
@rem https://github.com/numba/numba/blob/master/buildscripts/incremental/setup_conda_environment.cmd | ||
@rem The cmd /C hack circumvents a regression where conda installs a conda.bat | ||
@rem script in non-root environments. | ||
set CONDA_INSTALL=cmd /C conda install -q -y | ||
set PIP_INSTALL=pip install -q | ||
|
||
@echo on | ||
|
||
@rem Deactivate any environment | ||
call deactivate | ||
@rem add channels | ||
conda config --add channels https://repo.continuum.io/pkgs/free | ||
conda config --add channels conda-forge | ||
@rem Clean up any left-over from a previous build | ||
conda remove --all -q -y -n %CONDA_ENV% | ||
@rem Use clcache for faster builds | ||
pip install -q git+https://github.com/frerich/clcache.git | ||
clcache -s | ||
set CLCACHE_SERVER=1 | ||
set CLCACHE_HARDLINK=1 | ||
powershell.exe -Command "Start-Process clcache-server" | ||
@rem Create the env | ||
conda create -n %CONDA_ENV% -q -y python=%CONDA_PY% setuptools numpy scipy eigen rxcpp cmake snappy zlib ctags ply ninja mkl-devel | ||
|
||
call activate %CONDA_ENV% | ||
|
||
if %errorlevel% neq 0 exit /b %errorlevel% |
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 conda | ||
inputs: | ||
packageSpecs: '' | ||
updateConda: false | ||
|
||
- script: | | ||
.ci\\setup_conda_environment.cmd | ||
displayName: Install dependencies | ||
|
||
- task: CMake@1 | ||
displayName: Setup | ||
inputs: | ||
cmakeArgs: -G "%GENERATOR%" -DCMAKE_BUILD_TYPE=%BUILD_CONFIGURATION% -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 | ||
|
||
- script: ctest -j%NUMBER_OF_PROCESSORS% -C %BUILD_CONFIGURATION% -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