Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 22 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
# Travis configuration file for slycot
language: python
matrix:
include:
- name: "Python 2.7, TEST_CONDA=0"
env: SLYCOT_PYTHON_VERSION=2.7 TEST_CONDA=0
- name: "Python 2.7, TEST_CONDA=1"
env: SLYCOT_PYTHON_VERSION=2.7 TEST_CONDA=1

python:
- "2.7"
- "3.5"
- "3.6"
- name: "Python 3.5, TEST_CONDA=0"
env: SLYCOT_PYTHON_VERSION=3.7 TEST_CONDA=0
- name: "Python 3.5, TEST_CONDA=1"
env: SLYCOT_PYTHON_VERSION=3.7 TEST_CONDA=1

env:
- TEST_CONDA=0
- TEST_CONDA=1
- name: "Python 3.6, TEST_CONDA=0"
env: SLYCOT_PYTHON_VERSION=3.7 TEST_CONDA=0
- name: "Python 3.6, TEST_CONDA=1"
env: SLYCOT_PYTHON_VERSION=3.7 TEST_CONDA=1

- name: "Python 3.7, TEST_CONDA=0"
env: SLYCOT_PYTHON_VERSION=3.7 TEST_CONDA=0
- name: "Python 3.7, TEST_CONDA=1"
env: SLYCOT_PYTHON_VERSION=3.7 TEST_CONDA=1

before_install:
#
Expand All @@ -27,7 +38,7 @@ install:
# Install miniconda to allow quicker installation of dependencies
# See https://conda.io/docs/user-guide/tasks/use-conda-with-travis-ci.html
#
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
- if [[ "$SLYCOT_PYTHON_VERSION" == "2.7" ]]; then
wget http://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
Expand All @@ -41,7 +52,7 @@ install:
- conda info -a
#
# Set up a test environment for testing everything out
- conda create -q -n test-environment python="$TRAVIS_PYTHON_VERSION" pip coverage nose numpy openblas
- conda create -q -n test-environment python="$SLYCOT_PYTHON_VERSION" pip coverage nose numpy openblas
- source activate test-environment

#
Expand All @@ -64,7 +75,7 @@ install:
#
- if [[ $TEST_CONDA == 1 ]]; then
conda config --append channels conda-forge;
conda build --python "$TRAVIS_PYTHON_VERSION" conda-recipe-openblas;
conda build --python "$SLYCOT_PYTHON_VERSION" conda-recipe-openblas;
conda install conda-forge::openblas>=0.3.0;
conda install local::slycot;
else
Expand Down