-
Notifications
You must be signed in to change notification settings - Fork 7
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 #12 from E3SM-Project/add_azure
Add azure pipelines
- Loading branch information
Showing
1 changed file
with
39 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,39 @@ | ||
trigger: | ||
branches: | ||
include: | ||
- main | ||
tags: | ||
include: | ||
- '*' | ||
pr: | ||
branches: | ||
include: | ||
- main | ||
|
||
jobs: | ||
- job: | ||
displayName: linux | ||
pool: | ||
vmImage: 'ubuntu-latest' | ||
strategy: | ||
matrix: | ||
python3.9: | ||
python.version: '3.9' | ||
|
||
steps: | ||
- bash: echo "##vso[task.prependpath]$CONDA/bin" | ||
displayName: Add conda to PATH | ||
|
||
- bash: | | ||
set -e | ||
eval "$(conda shell.bash hook)" | ||
conda config --add channels conda-forge | ||
conda config --set channel_priority strict | ||
conda install --yes python=$PYTHON_VERSION conda conda-build mamba boa | ||
mamba update --all --yes | ||
displayName: Update conda base environment | ||
- bash: | | ||
eval "$(conda shell.bash hook)" | ||
conda mambabuild conda/ | ||
displayName: Build mache metapackage |