Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use catalina for some osx jobs #3591

Merged
merged 19 commits into from
Feb 26, 2020
Merged
Changes from 13 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 27 additions & 5 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ stages:
TWINE_PASSWORD: $(TWINE_PASSWORD)
- job: 'macos'
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags')
pool: {vmImage: 'macOS-10.13'}
pool: {vmImage: 'macOS-10.15'}
variables:
python.version: '3.7'
CIBW_BEFORE_BUILD: pip install -U Cython
Expand Down Expand Up @@ -222,8 +222,8 @@ stages:
inputs:
pathtoPublish: 'docs/_build/html'
artifactName: 'html_docs'
- job: 'MacOS_HighSierra_Tests'
pool: {vmImage: 'macOS-10.13'}
- job: 'MacOS_Catalina_Tests'
pool: {vmImage: 'macOS-10.15'}
condition: not(startsWith(variables['Build.SourceBranch'], 'refs/tags'))
strategy:
matrix:
Expand All @@ -234,8 +234,17 @@ stages:
inputs:
versionSpec: '$(python.version)'
displayName: 'Use Python $(python.version)'
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like it just echos the conda path. Maybe it doesn't need to be added to PATH?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- bash: sudo chown -R $USER $CONDA
displayName: Take ownership of conda installation
- script: conda create --yes --quiet --name qiskit-terra python=$(python.version)
displayName: Create Anaconda environment
- bash: |
set -e
source activate qiskit-terra
conda update --yes -n base conda
conda install --yes --quiet --name qiskit-terra python=$(python.version) numpy scipy
python -m pip install --upgrade pip
pip install -U -r requirements.txt -r requirements-dev.txt -c constraints.txt
pip install -c constraints.txt -e .
Expand All @@ -244,6 +253,7 @@ stages:
displayName: 'Install dependencies'
- bash: |
set -e
source activate qiskit-terra
export PYTHONHASHSEED=$(python -S -c "import random; print(random.randint(1, 4294967295))")
echo "PYTHONHASHSEED=$PYTHONHASHSEED"
stestr run
Expand All @@ -262,6 +272,7 @@ stages:
artifactName: 'drop_macos'
- bash: |
set -e
source activate qiskit-terra
pip install -U junitxml
mkdir -p junit
stestr last --subunit | tools/subunit_to_junit.py -o junit/test-results.xml
Expand Down Expand Up @@ -386,8 +397,8 @@ stages:
inputs:
testResultsFiles: '**/test-*.xml'
testRunTitle: 'Test results for Linux Python $(python.version)'
- job: 'MacOS_HighSierra_Tests'
pool: {vmImage: 'macOS-10.13'}
- job: 'MacOS_Catalina_Tests'
pool: {vmImage: 'macOS-10.15'}
condition: not(startsWith(variables['Build.SourceBranch'], 'refs/tags'))
strategy:
matrix:
Expand All @@ -402,8 +413,17 @@ stages:
inputs:
versionSpec: '$(python.version)'
displayName: 'Use Python $(python.version)'
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
- bash: sudo chown -R $USER $CONDA
displayName: Take ownership of conda installation
- script: conda create --yes --quiet --name qiskit-terra python=$(python.version)
displayName: Create Anaconda environment
- bash: |
set -e
source activate qiskit-terra
conda update --yes -n base conda
conda install --yes --quiet --name qiskit-terra python=$(python.version) numpy scipy
python -m pip install --upgrade pip
pip install -U -r requirements.txt -r requirements-dev.txt -c constraints.txt
pip install -c constraints.txt -e .
Expand All @@ -412,6 +432,7 @@ stages:
displayName: 'Install dependencies'
- bash: |
set -e
source activate qiskit-terra
export PYTHONHASHSEED=$(python -S -c "import random; print(random.randint(1, 4294967295))")
echo "PYTHONHASHSEED=$PYTHONHASHSEED"
stestr run --concurrency 2
Expand All @@ -430,6 +451,7 @@ stages:
artifactName: 'drop_macos'
- bash: |
set -e
source activate qiskit-terra
pip install -U junitxml
mkdir -p junit
stestr last --subunit | tools/subunit_to_junit.py -o junit/test-results.xml
Expand Down