Skip to content

Commit 96f1dac

Browse files
committed
CI: Test on pre-release versions of dependencies
1 parent 997f1dd commit 96f1dac

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

.travis.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1+
language: python
2+
13
sudo: false
24

5+
cache:
6+
directories:
7+
- $HOME/.cache/pip
38
env:
49
global:
510
- CONDA_DEPS="pip flake8 pytest numpy scipy"
11+
- EXTRA_WHEELS="https://5cf40426d9f06eb7461d-6fe47d9331aba7cd62fc36c7196769e4.ssl.cf2.rackcdn.com"
12+
- PRE_WHEELS="https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com"
13+
- EXTRA_PIP_FLAGS="--find-links=$EXTRA_WHEELS"
14+
- PRE_PIP_FLAGS="--pre $EXTRA_PIP_FLAGS --find-links $PRE_WHEELS"
615

716
matrix:
817
include:
@@ -22,6 +31,16 @@ matrix:
2231
env:
2332
- PYTHON_VERSION=3.5
2433
- MINICONDA_URL="https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh"
34+
- os: linux
35+
env:
36+
- PYTHON_VERSION=2.7
37+
- MINICONDA_URL="https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh"
38+
- EXTRA_PIP_FLAGS="$PRE_PIP_FLAGS"
39+
- os: linux
40+
env:
41+
- PYTHON_VERSION=3.5
42+
- MINICONDA_URL="https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh"
43+
- EXTRA_PIP_FLAGS="$PRE_PIP_FLAGS"
2544

2645
before_install:
2746
# https://github.com/travis-ci/travis-ci/issues/6522
@@ -39,7 +58,7 @@ before_install:
3958
- conda install --quiet python=$PYTHON_VERSION $CONDA_DEPS
4059

4160
install:
42-
- pip install ".[analysis]"
61+
- pip install $EXTRA_PIP_FLAGS ".[analysis]"
4362

4463
script:
4564
- py.test

0 commit comments

Comments
 (0)