Skip to content

Commit ca1109b

Browse files
terrytangyuanbellet
authored andcommitted
Extract skggm commit hash to an environment variable (scikit-learn-contrib#241)
1 parent 66457b5 commit ca1109b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.travis.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ language: python
22
sudo: false
33
cache: pip
44
language: python
5+
env:
6+
global:
7+
- SKGGM_VERSION=a0ed406586c4364ea3297a658f415e13b5cbdaf8
58
matrix:
69
include:
710
- name: "Pytest python 2.7 with skggm"
@@ -10,7 +13,7 @@ matrix:
1013
- sudo apt-get install liblapack-dev
1114
- pip install --upgrade pip pytest
1215
- pip install wheel cython numpy scipy codecov pytest-cov scikit-learn
13-
- pip install git+https://github.com/skggm/skggm.git@a0ed406586c4364ea3297a658f415e13b5cbdaf8;
16+
- pip install git+https://github.com/skggm/skggm.git@${SKGGM_VERSION};
1417
script:
1518
- pytest test --cov;
1619
after_success:
@@ -31,7 +34,7 @@ matrix:
3134
- sudo apt-get install liblapack-dev
3235
- pip install --upgrade pip pytest
3336
- pip install wheel cython numpy scipy codecov pytest-cov scikit-learn
34-
- pip install git+https://github.com/skggm/skggm.git@a0ed406586c4364ea3297a658f415e13b5cbdaf8;
37+
- pip install git+https://github.com/skggm/skggm.git@${SKGGM_VERSION};
3538
script:
3639
- pytest test --cov;
3740
after_success:
@@ -42,7 +45,7 @@ matrix:
4245
- sudo apt-get install liblapack-dev
4346
- pip install --upgrade pip pytest
4447
- pip install wheel cython numpy scipy codecov pytest-cov scikit-learn
45-
- pip install git+https://github.com/skggm/skggm.git@a0ed406586c4364ea3297a658f415e13b5cbdaf8;
48+
- pip install git+https://github.com/skggm/skggm.git@${SKGGM_VERSION};
4649
script:
4750
- pytest test --cov;
4851
after_success:

0 commit comments

Comments
 (0)