Update osx build scripts
@@ -22,25 +22,21 @@ jobs:
rm ~/uninstall_homebrew
displayName: Remove homebrew
- - script: |
- echo "Installing Miniconda"
- set -x -e
- curl -o $(Build.StagingDirectory)/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
- chmod +x $(Build.StagingDirectory)/miniconda.sh
- $(Build.StagingDirectory)/miniconda.sh -b -p $(Build.StagingDirectory)/miniconda
- export PATH=$(Build.StagingDirectory)/miniconda/bin:$PATH
- echo "Setting up Conda environment"
- displayName: 'Install miniconda'
+
+ - bash: |
+ echo "##vso[task.prependpath]$CONDA/bin"
+ sudo chown -R $USER $CONDA
+ displayName: Add conda to PATH
- script: |
- export PATH=$(Build.StagingDirectory)/miniconda/bin:$PATH
set -x -e
- conda install --yes --quiet -c conda-forge conda-forge-ci-setup=2 networkx conda-forge-pinning
+ source activate base
+ conda install -n base -c conda-forge --quiet --yes conda-forge-ci-setup=2 conda-build shyaml networkx conda-forge-pinning
displayName: 'Add conda-forge-ci-setup=2'
- script: |
set -x -e
- export PATH=$(Build.StagingDirectory)/miniconda/bin:$PATH
+ source activate base
echo "Configuring conda."
setup_conda_rc ./ ./recipes ./.ci_support/${CONFIG}.yaml
@@ -54,7 +50,7 @@ jobs:
- script: |
# Find the recipes from master in this PR and remove them.
- export PATH=$(Build.StagingDirectory)/miniconda/bin:$PATH
+ source activate base
echo ""
echo "Finding recipes merged in master and removing them from the build."
