-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #215 from JohanMabille/azure
Added Azure Pipelines
- Loading branch information
Showing
5 changed files
with
97 additions
and
0 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: 'Linux' | ||
strategy: | ||
matrix: | ||
gcc_7: | ||
image_name: 'ubuntu-16.04' | ||
pool: | ||
vmImage: $(image_name) | ||
timeoutInMinutes: 360 | ||
steps: | ||
|
||
- bash: echo "##vso[task.prependpath]$CONDA/bin" | ||
displayName: Add conda to PATH | ||
|
||
- template: unix-build.yml | ||
parameters: | ||
platform: 'Linux' |
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,26 @@ | ||
jobs: | ||
- job: 'OSX' | ||
strategy: | ||
matrix: | ||
macOS_10_15: | ||
image_name: 'macOS-10.15' | ||
pool: | ||
vmImage: $(image_name) | ||
variables: | ||
CC: clang | ||
CXX: clang++ | ||
timeoutInMinutes: 360 | ||
steps: | ||
- script: | | ||
echo "Removing homebrew for Azure to avoid conflicts with conda" | ||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)" | ||
displayName: Remove homebrew | ||
- bash: | | ||
echo "##vso[task.prependpath]$CONDA/bin" | ||
sudo chown -R $USER $CONDA | ||
displayName: Add conda to PATH | ||
- template: unix-build.yml | ||
parameters: | ||
platform: 'OSX' |
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,36 @@ | ||
parameters: | ||
- name: 'platform' | ||
type: string | ||
|
||
steps: | ||
- script: | | ||
conda config --set always_yes yes --set changeps1 no | ||
conda update -q conda | ||
conda env create --file environment-dev.yml | ||
displayName: Install dependencies | ||
- script: | | ||
source activate xwidgets | ||
conda install gxx_linux-64 libcxx -c conda-forge | ||
condition: eq('${{ parameters.platform }}', 'Linux') | ||
displayName: Install conda-forge compilers | ||
- script: | | ||
source activate xwidgets | ||
mkdir build | ||
cd build | ||
cmake -DCMAKE_PREFIX_PATH=$CONDA_PREFIX -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DDOWNLOAD_GTEST=ON -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_C_COMPILER=$CC -DCMAKE_CXX_COMPILER=$CXX $(Build.SourcesDirectory) | ||
displayName: Configure xwidgets | ||
workingDirectory: $(Build.BinariesDirectory) | ||
- script: | | ||
source activate xwidgets | ||
make install -j2 | ||
displayName: Build xwidgets | ||
workingDirectory: $(Build.BinariesDirectory)/build | ||
- script: | | ||
source activate xwidgets | ||
./test_xwidgets | ||
displayName: Test xwidgets | ||
workingDirectory: $(Build.BinariesDirectory)/build/test |
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,7 @@ | ||
trigger: | ||
- master | ||
|
||
jobs: | ||
- template: ./.azure-pipelines/azure-pipelines-linux.yml | ||
- template: ./.azure-pipelines/azure-pipelines-osx.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,11 @@ | ||
name: xwidgets | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
# Build dependencies | ||
- cmake | ||
# Host dependencies | ||
- xeus=0.25.0 | ||
- cppzmq | ||
- xproperty=0.10.0 | ||
- nlohmann_json |