Skip to content

Commit

Permalink
test latest python with old and new numpy (#74)
Browse files Browse the repository at this point in the history
test latest python with old and new numpy
  • Loading branch information
ocefpaf authored Jun 4, 2019
2 parents 9d39ea1 + 472d8ff commit d1795e1
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ env:
matrix:
fast_finish: true
include:
- name: "python-3.7"
env: PY=3.7
- name: "python-3.7 numpy=1.11"
env: PY=3.7 NP=1.11
- name: "python-3.7 numpy=1.16"
env: PY=3.7 NP=1.16
- name: "python-3.6"
env: PY=3.6
- name: "python-2.7"
Expand All @@ -26,18 +28,19 @@ matrix:
before_install:
# Install miniconda and create TEST env.
- |
wget http://bit.ly/miniconda -O miniconda.sh
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
conda config --set always_yes yes --set changeps1 no --set show_channel_urls true
conda update conda --quiet
conda install pycryptosat --quiet
conda config --add channels conda-forge --force
conda config --set sat_solver pycryptosat
conda config --set channel_priority strict
conda config --set safety_checks disabled
conda create --name TEST python=$PY --file requirements.txt --file requirements-dev.txt
source activate TEST
if [[ -n "$NP" ]]; then
conda install numpy=$NP
fi
install:
- python setup.py sdist && version=$(python setup.py --version) && pushd dist && pip install --no-deps --force-reinstall UTide-${version}.tar.gz && popd
Expand Down

0 comments on commit d1795e1

Please sign in to comment.