Skip to content

Commit d98d479

Browse files
committed
update travis
1 parent abb5bc4 commit d98d479

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

.travis.yml

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,27 @@
11
dist: trusty
22
language: python
33
python:
4-
- "2.6"
54
- "2.7"
6-
- "3.3"
7-
- "3.4"
85
- "3.5"
96
install:
10-
- pip install --only-binary=numpy,scipy numpy nose scipy pytest sklearn
11-
- pip install tensorflow
12-
- pip install git+https://github.com/hycis/TensorGraph.git@master
13-
- pip3 install --only-binary=numpy,scipy numpy nose scipy pytest sklearn
14-
- pip3 install tensorflow
15-
- pip3 install git+https://github.com/hycis/TensorGraph.git@master
7+
8+
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
9+
pip install --only-binary=numpy,scipy numpy nose scipy pytest sklearn
10+
pip install tensorflow
11+
pip install git+https://github.com/hycis/TensorGraph.git@master
12+
fi
13+
14+
- if [[ "$TRAVIS_PYTHON_VERSION" == "3.5" ]]; then
15+
pip3 install --only-binary=numpy,scipy numpy nose scipy pytest sklearn
16+
pip3 install tensorflow
17+
pip3 install git+https://github.com/hycis/TensorGraph.git@master
18+
fi
19+
1620
script:
1721
- echo "TensorGraph Testing.."
18-
- python -m pytest test
19-
- python3 -m pytest test
22+
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
23+
python -m pytest test
24+
fi
25+
- if [[ "$TRAVIS_PYTHON_VERSION" == "3.5" ]]; then
26+
python3 -m pytest test
27+
fi

0 commit comments

Comments
 (0)