https://github.com/RadioAstronomySoftwareGroup/pyuvdata
Raw File
Tip revision: 983ae27b57a28550b6ee1a58e13cc9161bb89327 authored by Bryna Hazelton on 15 January 2020, 19:15 UTC
update release date
Tip revision: 983ae27
azure-piplines.yml
jobs:
- job: hera_cal
  pool:
    vmImage: "ubuntu-16.04"

  steps:
  - bash: echo "##vso[task.prependpath]$CONDA/bin"
    displayName: Add conda to PATH

  - bash: |
      PYTHON="3.6"
      conda config --set always_yes yes --set changeps1 no
      conda update -q conda
      conda config --add channels conda-forge
      conda info -a
      conda create -n hera_cal python=$PYTHON
      source activate hera_cal
      conda env update -n hera_cal -f ci/hera_cal.yml
      conda list -n hera_cal
      PYVER=`python -c "from __future__ import print_function; import sys; print('{:d}.{:d}'.format(sys.version_info.major, sys.version_info.minor))"`
      if [[ $PYVER != $PYTHON ]]; then
        exit 1;
      fi
    displayName: Create Anaconda environment

  - bash: |
      source activate hera_cal
      pip install .
      pip install git+https://github.com/HERA-Team/linsolve.git
      pip install git+https://github.com/HERA-Team/hera_qm.git
      pip install git+https://github.com/HERA-Team/uvtools.git
      pip install git+https://github.com/RadioAstronomySoftwareGroup/pyuvsim.git
      pip install git+https://github.com/HERA-Team/hera_sim.git
    displayName: install related repos

  - bash: |
      source activate hera_cal
      cd ../
      git clone https://github.com/HERA-Team/hera_cal.git
      cd hera_cal
      mkdir test-reports
      python -m pytest hera_cal --junitxml=test-reports/xunit.xml
    displayName: run hera_cal tests

- job: hera_qm
  pool:
    vmImage: "ubuntu-16.04"

  steps:
  - bash: echo "##vso[task.prependpath]$CONDA/bin"
    displayName: Add conda to PATH

  - bash: |
      PYTHON="3.6"
      conda config --set always_yes yes --set changeps1 no
      conda update -q conda
      conda config --add channels conda-forge
      conda info -a
      conda create -n hera_qm python=$PYTHON
      source activate hera_qm
      conda env update -n hera_qm -f ci/hera_qm.yml
      conda list -n hera_qm
      PYVER=`python -c "from __future__ import print_function; import sys; print('{:d}.{:d}'.format(sys.version_info.major, sys.version_info.minor))"`
      if [[ $PYVER != $PYTHON ]]; then
        exit 1;
      fi
    displayName: Create Anaconda environment

  - bash: |
      source activate hera_qm
      pip install .
      pip install git+https://github.com/HERA-Team/omnical.git
      pip install git+https://github.com/HERA-Team/linsolve.git
      pip install git+https://github.com/HERA-Team/uvtools.git
      pip install git+https://github.com/HERA-Team/hera_cal.git
    displayName: install related repos

  - bash: |
      source activate hera_qm
      cd ../
      git clone https://github.com/HERA-Team/hera_qm.git
      cd hera_qm
      mkdir test-reports
      python -m pytest hera_qm --junitxml=test-reports/xunit.xml
    displayName: run hera_qm tests
back to top