Skip to content

Commit

Permalink
whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
shoyer committed Jun 27, 2019
1 parent 133befd commit 41675e9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ci/azure/add-conda-to-path.yml
@@ -1,14 +1,17 @@
# https://docs.microsoft.com/en-us/azure/devops/pipelines/languages/anaconda
steps:

- bash: |
echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH (Linux)
condition: eq(variables['Agent.OS'], 'Linux')

- bash: |
echo "##vso[task.prependpath]$CONDA/bin"
sudo chown -R $USER $CONDA
displayName: Add conda to PATH (OS X)
condition: eq(variables['Agent.OS'], 'Darwin')

- powershell: |
Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
displayName: Add conda to PATH (Windows)
Expand Down
4 changes: 4 additions & 0 deletions ci/azure/install.yml
Expand Up @@ -2,14 +2,18 @@ parameters:
env_file: ci/requirements-$CONDA_ENV.yml

steps:

- template: add-conda-to-path.yml

- bash: |
conda env create -n test_env --file ${{ parameters.env_file }}
displayName: Install dependencies

- bash: |
source activate test_env
pip install --no-deps -e .
displayName: Install xarray

- bash: |
source activate test_env
conda list
Expand Down
10 changes: 8 additions & 2 deletions ci/azure/unit-tests.yml
@@ -1,20 +1,26 @@
steps:

- template: install.yml

- bash: |
source activate test_env
python -OO -c "import xarray"
displayName: Import xarray

- bash: |
source activate test_env
pytest xarray --junitxml=junit/test-results.xml \
--cov=xarray --cov-config=ci/.coveragerc --cov-report=xml $EXTRA_FLAGS
displayName: Run tests
# TODO: upload coverage results, once we can merge them across multiple jobs
# https://stackoverflow.com/questions/56776185

# TODO: publish coverage results to Azure, once we can merge them across
# multiple jobs: https://stackoverflow.com/questions/56776185

- bash: |
source activate test_env
COVERALLS_REPO_TOKEN=$(coverallsToken) COVERALLS_PARALLEL=true coveralls
displayName: Upload coverage to coveralls

- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
Expand Down

0 comments on commit 41675e9

Please sign in to comment.