Skip to content
This repository was archived by the owner on Oct 1, 2021. It is now read-only.

Commit

Permalink
Tweaks to the Azure and Travis configurations (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
leouieda authored Mar 21, 2019
1 parent 84e6687 commit 561ae97
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
21 changes: 16 additions & 5 deletions .azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,14 @@ jobs:
#- bash: |
#set -x -e
#source activate testing
#coverage xml;
#echo "Uploading coverage to Codecov";
#codecov -e PYTHON;
#coverage xml
#echo "Uploading coverage to Codecov"
#codecov -e PYTHON AGENT_OS
# Need to set the codecov token for this repository on the Pipelines website. Get
# the token from codecov, then go to Edit the pipeline, Variables, and create
# "codecov.token" and make it secret (click on the lock icon).
#env:
#CODECOV_TOKEN: $(codecov.token)
#condition: succeeded()
#displayName: Upload coverage

Expand Down Expand Up @@ -175,27 +180,33 @@ jobs:

# Show installed pkg information for postmortem diagnostic
- bash: |
set -x -e
source activate testing
conda list
displayName: List installed packages
# Install the package that we want to test
#- bash: |
#set -x -e
#source activate testing
#python setup.py sdist --formats=zip
#pip install dist/*
#displayName: Install the package

# Run the tests
- bash: |
set -x -e
source activate testing
mkdir -p tmp; cd tmp; python -c "import numpy; assert True"
displayName: Test
# Upload test coverage if there were no failures
#- bash: |
#set -x -e
#source activate testing
#coverage xml;
#codecov -e PYTHON;
#coverage xml
#codecov -e PYTHON AGENT_OS
#env:
#CODECOV_TOKEN: $(codecov.token)
#condition: succeeded()
#displayName: Upload coverage
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ env:
# These files list the requirements to be installed by conda
- CONDA_REQUIREMENTS=requirements.txt
- CONDA_REQUIREMENTS_DEV=requirements-dev.txt
# If uploading coverage to codecov
#- CONDA_INSTALL_EXTRA="codecov"
#
# These variables control which actions are performed in a build
- COVERAGE=false
Expand Down Expand Up @@ -87,7 +89,6 @@ script:
#- make lint
# Run the test suite
#- if [ "$COVERAGE" == "true" ]; then
#pip install codecov;
#make coverage;
#else
#make test;
Expand Down

0 comments on commit 561ae97

Please sign in to comment.