Skip to content

Commit

Permalink
Skip GUI test by removing QT_API env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
epassaro committed May 27, 2020
1 parent f637bfc commit 9cd1787
Showing 1 changed file with 50 additions and 55 deletions.
105 changes: 50 additions & 55 deletions azure-pipelines/simple_test_framework.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,66 +3,61 @@
# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/python


trigger:
- master
- master

variables:
system.debug: 'true'
ref.data.home: '$(Agent.BuildDirectory)/tardis-refdata'
system.debug: "true"
ref.data.home: "$(Agent.BuildDirectory)/tardis-refdata"

ref.data.github.url: 'https://github.com/tardis-sn/tardis-refdata.git'
ref.data.github.url: "https://github.com/tardis-sn/tardis-refdata.git"
tardis.build.dir: $(Build.Repository.LocalPath)



jobs:

- job: 'Test'
pool:
vmImage: $[variables.vm_Image]

strategy:
matrix:
linux:
vm_Image: 'Ubuntu-16.04'
conda: '/usr/share/miniconda'
mac:
vm_Image: 'macOS-10.14'
miniconda.url: 'http://repo.continuum.io/miniconda/Miniconda2-latest-mac-x86_64.sh'
maxParallel: 4

steps:
- bash: |
- job: "Test"
pool:
vmImage: $[variables.vm_Image]

strategy:
matrix:
linux:
vm_Image: "Ubuntu-16.04"
conda: "/usr/share/miniconda"
mac:
vm_Image: "macOS-10.14"
miniconda.url: "http://repo.continuum.io/miniconda/Miniconda2-latest-mac-x86_64.sh"
maxParallel: 4

steps:
- bash: |
echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
- bash: |
sudo chown -R $USER $CONDA
# conda update -y conda
displayName: updating conda and activating
- bash: |
sh ci-helpers/install_tardis_env.sh
displayName: 'Install TARDIS env'
- bash: |
sh ci-helpers/fetch_reference_data.sh
displayName: 'Fetch Reference Data'
- bash: |
source activate tardis
python setup.py build_ext --inplace
displayName: 'TARDIS build'
- bash: |
source activate tardis
conda install -y pytest-cov
pip install git+https://github.com/tonybaloney/pytest-azurepipelines.git
export QT_API=pyqt
pytest tardis --tardis-refdata=$(ref.data.home) --cov=tardis --cov-report=xml --cov-report=html
displayName: 'TARDIS test'
- script: |
bash <(curl -s https://codecov.io/bash)
displayName: 'Upload to codecov.io'
displayName: Add conda to PATH
- bash: |
sudo chown -R $USER $CONDA
# conda update -y conda
displayName: updating conda and activating
- bash: |
sh ci-helpers/install_tardis_env.sh
displayName: "Install TARDIS env"
- bash: |
sh ci-helpers/fetch_reference_data.sh
displayName: "Fetch Reference Data"
- bash: |
source activate tardis
python setup.py build_ext --inplace
displayName: "TARDIS build"
- bash: |
source activate tardis
conda install -y pytest-cov
pip install git+https://github.com/tonybaloney/pytest-azurepipelines.git
pytest tardis --tardis-refdata=$(ref.data.home) --cov=tardis --cov-report=xml --cov-report=html
displayName: "TARDIS test"
- script: |
bash <(curl -s https://codecov.io/bash)
displayName: "Upload to codecov.io"

0 comments on commit 9cd1787

Please sign in to comment.