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

Avoid reuse in azure pipelines and split build out #260

Merged
merged 6 commits into from
Jul 3, 2019
Merged
Changes from all 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
20 changes: 13 additions & 7 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,25 @@ strategy:
steps:
- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
displayName: Add conda to PATH
- script: conda create --yes --quiet --name qiskit-aer
- script: conda create --yes --quiet --name qiskit-aer-$(Build.BuildNumber)
displayName: Create Anaconda environment
- script: |
call activate qiskit-aer
conda install --yes --quiet --name qiskit-aer python=%PYTHON_VERSION% numpy
call activate qiskit-aer-$(Build.BuildNumber)
conda install --yes --quiet --name qiskit-aer-$(Build.BuildNumber) python=%PYTHON_VERSION% numpy
displayName: Install Anaconda packages
- script: |
call activate qiskit-aer
- bash: |
set -e
source activate qiskit-aer-$(Build.BuildNumber)
git clean -fdX
python -m pip install --disable-pip-version-check pip==18
pip install cython
pip install git+https://github.com/Qiskit/qiskit-terra.git
pip install --ignore-installed -r requirements-dev.txt
python setup.py bdist_wheel -- -G "Visual Studio 15 2017 Win64"
pip install --find-links=dist\ qiskit_aer
displayName: 'Install Dependencies and Build Aer'
- bash: |
set -e
source activate qiskit-aer-$(Build.BuildNumber)
pip install dist/qiskit_aer*.whl
python -m unittest discover -s test/terra -v
displayName: 'Install dependencies and Run Tests'
displayName: 'Install Aer and Run Tests'