Skip to content

Commit

Permalink
Merge pull request #299 from pyvisa/keysight-ci
Browse files Browse the repository at this point in the history
cis: update azure configuration
  • Loading branch information
MatthieuDartiailh authored Mar 8, 2021
2 parents c246a98 + fab1a44 commit 40d4396
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,19 @@ variables:
PYVISA_KEYSIGHT_VIRTUAL_INSTR: 1

pool:
name: default
name: Keysight-based
demands: KEYSIGHT -equals TCPIP

steps:
- script: |
echo Activate conda
call $(CONDA_PATH)\activate.bat
export PATH="$HOME/miniconda3/bin:$PATH"
echo Create environment
conda create -n test_ python=3.7 numpy --yes
conda create -n test_ python=3.9 numpy --yes
displayName: "Create environment"
- script: |
echo Activate conda
call $(CONDA_PATH)\activate.bat
export PATH="$HOME/miniconda3/bin:$PATH"
source $HOME/miniconda3/bin/activate
echo Activate environment
call conda activate test_
echo Install project
Expand All @@ -39,8 +38,8 @@ steps:
displayName: "Install dependencies"
- script: |
echo Activate conda
call $(CONDA_PATH)\activate.bat
export PATH="$HOME/miniconda3/bin:$PATH"
source $HOME/miniconda3/bin/activate
echo Activate environment
call conda activate test_
echo Install pytest and co
Expand All @@ -50,8 +49,8 @@ steps:
displayName: "Run tests"
- script: |
echo Activate conda
call $(CONDA_PATH)\activate.bat
export PATH="$HOME/miniconda3/bin:$PATH"
source $HOME/miniconda3/bin/activate
echo Activate environment
call conda activate test_
echo Install codecov
Expand All @@ -61,7 +60,7 @@ steps:
displayName: "Upload test coverage results"
- script: |
call $(CONDA_PATH)\activate.bat
export PATH="$HOME/miniconda3/bin:$PATH"
conda remove -n test_ --all --yes
displayName: "Remove test environment"
condition: always()

0 comments on commit 40d4396

Please sign in to comment.