From b8bbcfd7cfb3b213d2649039c93942e9660cd94c Mon Sep 17 00:00:00 2001 From: Wei Ji <23487320+weiji14@users.noreply.github.com> Date: Fri, 1 Nov 2019 04:08:58 +1300 Subject: [PATCH] Update continuous integration scripts to 1.2.0 (#355) Fixes randomly failing Azure Mac builds. See release notes at https://github.com/fatiando/continuous-integration/releases/tag/1.2.0. --- .azure-pipelines.yml | 12 +++++++++--- .travis.yml | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index b16d166a239..d78496f6cd6 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -34,7 +34,7 @@ jobs: displayName: Add conda to PATH # Get the Fatiando CI scripts - - bash: git clone --branch=1.1.1 --depth=1 https://github.com/fatiando/continuous-integration.git + - bash: git clone --branch=1.2.0 --depth=1 https://github.com/fatiando/continuous-integration.git displayName: Fetch the Fatiando CI scripts # Setup dependencies and build a conda environment @@ -94,9 +94,15 @@ jobs: displayName: Add conda to PATH # Get the Fatiando CI scripts - - bash: git clone --branch=1.1.1 --depth=1 https://github.com/fatiando/continuous-integration.git + - bash: git clone --branch=1.2.0 --depth=1 https://github.com/fatiando/continuous-integration.git displayName: Fetch the Fatiando CI scripts + # On Hosted macOS, the agent user doesn't have ownership of Miniconda's installation + # directory. We need to take ownership if we want to update conda or install packages + # globally. + - bash: sudo chown -R $USER $CONDA + displayName: Take ownership of conda installation + # Setup dependencies and build a conda environment - bash: source continuous-integration/azure/setup-miniconda.sh displayName: Setup Miniconda @@ -179,7 +185,7 @@ jobs: displayName: Add conda to PATH # Get the Fatiando CI scripts - - script: git clone --branch=1.1.1 --depth=1 https://github.com/fatiando/continuous-integration.git + - script: git clone --branch=1.2.0 --depth=1 https://github.com/fatiando/continuous-integration.git displayName: Fetch the Fatiando CI scripts # Setup dependencies and build a conda environment diff --git a/.travis.yml b/.travis.yml index 6c72ffb7cb1..468d1963050 100644 --- a/.travis.yml +++ b/.travis.yml @@ -47,7 +47,7 @@ matrix: before_install: # Get the Fatiando CI scripts - - git clone --branch=1.1.1 --depth=1 https://github.com/fatiando/continuous-integration.git + - git clone --branch=1.2.0 --depth=1 https://github.com/fatiando/continuous-integration.git # Download and install miniconda and setup dependencies # Need to source the script to set the PATH variable globaly - source continuous-integration/travis/setup-miniconda.sh