Skip to content

Commit

Permalink
Merge pull request #462 from mhvk/try-choco-for-windows
Browse files Browse the repository at this point in the history
Use choco instead of ci-helpers/conda to install python on windows,
and ensure we ignore runtime warnings about ufunc sizes.
  • Loading branch information
mhvk committed Oct 23, 2020
1 parent d2b24af commit 45f577f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
21 changes: 13 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,20 +99,25 @@ jobs:
- os: windows
language: c
stage: Comprehensive tests
name: Python 3.7 on Windows
env: PYTHON_VERSION=3.7
TOXENV='py37-test'
name: Python 3.8 on Windows
env: PATH=/c/Python38:/c/Python38/Scripts:$PATH
TOXENV='py38-test'


install:

# language: python is only available for Linux, so for other platforms
# we need to use ci-helpers to set up Python.
- if [[ $TRAVIS_OS_NAME == osx || $TRAVIS_OS_NAME == windows ]]; then
before_install:
# language: python is only available for Linux.
# For Windows, we use choco to install Python.
- if [[ $TRAVIS_OS_NAME == windows ]]; then
choco install --no-progress python --version 3.8;
python -m pip install --upgrade pip;
fi
# For OSX, we use ci-helpers to set up Python.
- if [[ $TRAVIS_OS_NAME == osx ]]; then
git clone git://github.com/astropy/ci-helpers.git;
source ci-helpers/travis/setup_conda.sh;
fi

install:
- if [[ $SETUP_METHOD == 'tox' ]]; then
pip install tox;
else
Expand Down
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ filterwarnings =
error
ignore:::pytest_doctestplus
ignore::DeprecationWarning:baseband.vlbi_base

ignore:numpy.ufunc size changed:RuntimeWarning

[coverage:run]
omit =
baseband/_astropy_init*
Expand Down

0 comments on commit 45f577f

Please sign in to comment.