Skip to content

Commit d3206ce

Browse files
committed
Enable travis to run tests
Fixes #151. Pull request: #154
1 parent aaeea8a commit d3206ce

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.travis.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
language: python
2+
python:
3+
- "2.7"
4+
sudo: required
5+
services:
6+
- docker
7+
env:
8+
- PRODUCT_TEST_GROUP=0
9+
- PRODUCT_TEST_GROUP=1
10+
- PRODUCT_TEST_GROUP=2
11+
- OTHER_TESTS=true
12+
install:
13+
- pip install --upgrade pip==6.1.1
14+
- pip install -r requirements.txt
15+
script:
16+
- |
17+
if [ -v PRODUCT_TEST_GROUP]; then
18+
PRODUCT_TESTS=$(find tests/product/ -name '*py' | awk "NR % 3 == $PRODUCT_TEST_GROUP" | paste -sd ,)
19+
echo Running $PRODUCT_TESTS
20+
tox -e py26 -- -a '!quarantine' $PRODUCT_TESTS
21+
fi
22+
- |
23+
if [ -v OTHER_TESTS ]; then
24+
make clean lint docs test test-rpm
25+
fi

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[wheel]
22
universal = 0
33
[nosetests]
4-
verbosity=3
4+
verbosity=3

0 commit comments

Comments
 (0)