Skip to content

Commit

Permalink
Merge pull request #5 from Numerics88/Besler/CI
Browse files Browse the repository at this point in the history
Implement continuous integration
  • Loading branch information
Besler authored Dec 18, 2019
2 parents 0408f6a + 9dfff9a commit 61939e4
Show file tree
Hide file tree
Showing 123 changed files with 2,190 additions and 1,246 deletions.
36 changes: 36 additions & 0 deletions .azure-pipelines/azure-pipelines-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

jobs:
- job: Linux
pool:
vmImage: 'ubuntu-latest'
strategy:
matrix:
Python27:
python.version: '2.7'
Python36:
python.version: '3.6'
Python37:
python.version: '3.7'
Python38:
python.version: '3.8'
steps:
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to path
- script: conda create -y -n n88 conda-build
displayName: Setup conda
- script: |
source activate n88
conda-build -c Numerics88 -c conda-forge conda-recipe/vtkbone/ --variants "{'python': ['$(python.version)']}"
displayName: Conda build
- task: CopyFiles@2
inputs:
sourceFolder: /usr/share/miniconda/envs/n88/conda-bld/linux-64/
contents: '*.tar.bz2'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
displayName: Copy conda build
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: vtkbone-Linux-$(python.version)
displayName: Publish artifact

44 changes: 44 additions & 0 deletions .azure-pipelines/azure-pipelines-osx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@

jobs:
- job: macOS
pool:
vmImage: 'macOS-latest'
strategy:
matrix:
Python27:
python.version: '2.7'
Python36:
python.version: '3.6'
Python37:
python.version: '3.7'
Python38:
python.version: '3.8'
steps:
- bash: |
echo "##vso[task.prependpath]$CONDA/bin"
sudo chown -R $USER $CONDA
displayName: Add conda to path
- bash: |
sudo mkdir -p /opt/
sudo chown -R $USER /opt/
curl -L https://github.com/phracker/MacOSX-SDKs/releases/download/10.13/MacOSX10.9.sdk.tar.xz -o MacOSX10.9.sdk.tar.xz
tar -xJf MacOSX10.9.sdk.tar.xz -C /opt/
displayName: Download OSX SDK
- script: conda create -y -n n88 conda-build
displayName: Setup conda
- script: |
source activate n88
conda-build -c Numerics88 -c conda-forge conda-recipe/vtkbone/ --variants "{'python': ['$(python.version)']}"
displayName: Conda build
- task: CopyFiles@2
inputs:
sourceFolder: /usr/local/miniconda/envs/n88/conda-bld/osx-64/
contents: '*.tar.bz2'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
displayName: Copy conda build
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: vtkbone-macOS-$(python.version)
displayName: Publish artifact

37 changes: 37 additions & 0 deletions .azure-pipelines/azure-pipelines-win.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

jobs:
- job: Windows
pool:
vmImage: 'vs2017-win2016'
strategy:
matrix:
# Disable because no vtk=8.2 for win-py27
# Python27:
# python.version: '2.7'
Python36:
python.version: '3.6'
Python37:
python.version: '3.7'
Python38:
python.version: '3.8'
steps:
- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
displayName: Add conda to path
- script: conda create -y -n n88 conda-build
displayName: Setup conda
- script: |
call activate n88
conda-build -c Numerics88 -c conda-forge --python=$(python.version) conda-recipe/vtkbone/
displayName: Conda build
- task: CopyFiles@2
inputs:
sourceFolder: C:\Miniconda\envs\n88\conda-bld\win-64\
contents: '*.tar.bz2'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
displayName: Copy conda build
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: vtkbone-Windows-$(python.version)
displayName: Publish artifact

Loading

0 comments on commit 61939e4

Please sign in to comment.