Skip to content

Commit 6db60f4

Browse files
nils-braunMaxBenChrist
authored andcommitted
Travis test (blue-yonder#300)
* Seperated out unit and integration tests * Run both test suites indepentendly * Use the build in cache by travis for pip * Try to use 2 cores * First install requirements, then the project * Try out the new stages build feature * Next try... * And anoter one... * Continue.. * ... * Caching the virtualenv did not help * renamed build stages * set n_jobs for pytest to auto * fix naming of test stages * use with notation for filehandling * set number of cpus to 2 * limit number of jobs to 2 by pytest argument * use write AND read mode for profiling file * add __init__.py to test folder * use tempfolder for profiling files
1 parent 426cfb3 commit 6db60f4

26 files changed

+58
-37
lines changed

.travis.yml

Lines changed: 49 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,54 @@
1+
# Travis Build file for tsfresh
12
language: python
3+
# We do not use sudo here, so we can use docker containers, which have better caching
4+
sudo: false
5+
# We want the pip folder to be cached, to speed up installation
26
cache:
37
directories:
48
- $HOME/.cache/pip
5-
before_cache:
6-
- rm -f $HOME/.cache/pip/log/debug.log
7-
python:
8-
- '2.7.11'
9-
- '3.5.2'
109
install:
11-
- pip install --upgrade pip
12-
- pip install numpy
13-
- pip install scipy
14-
- pip install coveralls
15-
- pip install .
16-
- pip install -r requirements.txt
17-
- pip install -r test-requirements.txt
18-
- pip freeze
19-
env:
20-
- NUMBER_OF_CPUS=1
21-
script:
22-
# hack to set xdist to use only 1 node instead of 32
23-
- sed -i 's/\-n 4/\-n 1/g' setup.cfg
24-
- python setup.py test
25-
deploy:
26-
provider: pypi
27-
user: MaxChrist
28-
password:
29-
secure: Jh0Z69Mh+esOpegXyXoecFOkpMhaQaiJbQVEvVvQ2K1rCmCE20a19/TGfPUrynpqOYXZvvb5Ok6CtlzAi9J5huA3MRSf4iYPsUe8i7n0FK4JU5BP7VqM3/7cQZMdD5SeYFV3e3JURDcKYfoG7N+DNb+LfluYK5MBkRLhdEVRqSeHocPY4QRzzhJi1ljX99ThdRPrsQqYaD3tpZxJhbJDgHLtvMr39+407uQSDnubvFz3iu90DZiN2fIP5bEN6PDuaGXNZMA1p40DjSkGc7epg0U4vHn6CSya1nXlqjXUqXYJY5Ha2kbMAN7hfmU+gId09+FSHQRuanKJkRqSBksVgATCAeSAiqAe3EPAsG75ewhXDeusQZMzRy7DxQzjOJG9oIyWMVmZFlIoNlpg2eifN9uUc7FfyGHiVfWwUDslszpc/81hQViMPP0NoMAop4zcWR3ChCMnHMycPQEmWuV65WfL7yN6SuTokxSmepubPtFs+4UIlI0rgZWCHVIgGZqI8LFn958pLtpQ+32Ew8HGU3IiOfao9HbGreQ2Lgqo2L2EyNDWiHfJ3oZ1+6BP/1GqI6j7x7oPdwoE1jvY4CSC7iMAiieZNnrvywvmJpZB69CGefxQJzWcm+yD03QwNBFFaabCbKwbn+q3eUOUrPRuvTkhVLRWDxQNH/zaZyuZQ+Q=
30-
distributions: "sdist bdist_wheel"
31-
on:
32-
tags: true
33-
repo: blue-yonder/tsfresh
34-
after_success:
35-
- coveralls
10+
- pip install --upgrade pip wheel setuptools
11+
- pip install numpy scipy coveralls
12+
- pip install -r requirements.txt -r test-requirements.txt
13+
- pip install -U .
14+
- pip freeze
15+
jobs:
16+
include:
17+
- stage: prepare cache
18+
script: true
19+
python: 2.7.11
20+
- stage: prepare cache
21+
script: true
22+
python: 3.5.2
23+
24+
- stage: Run unit tests
25+
script: py.test tests/units -n 2
26+
python: 2.7.11
27+
- stage: Run unit tests
28+
script: py.test tests/units -n 2
29+
python: 3.5.2
30+
31+
- stage: Run the full test suite
32+
script:
33+
- sed -i 's/\-n auto/\-n 2/g' setup.cfg
34+
- python setup.py test
35+
python: 2.7.11
36+
after_success:
37+
- coveralls
38+
- stage: Run the full test suite
39+
script:
40+
- sed -i 's/\-n auto/\-n 2/g' setup.cfg
41+
- python setup.py test
42+
python: 3.5.2
43+
44+
- stage: Deploy to pipy
45+
script: skip
46+
deploy:
47+
provider: pypi
48+
user: MaxChrist
49+
password:
50+
secure: Jh0Z69Mh+esOpegXyXoecFOkpMhaQaiJbQVEvVvQ2K1rCmCE20a19/TGfPUrynpqOYXZvvb5Ok6CtlzAi9J5huA3MRSf4iYPsUe8i7n0FK4JU5BP7VqM3/7cQZMdD5SeYFV3e3JURDcKYfoG7N+DNb+LfluYK5MBkRLhdEVRqSeHocPY4QRzzhJi1ljX99ThdRPrsQqYaD3tpZxJhbJDgHLtvMr39+407uQSDnubvFz3iu90DZiN2fIP5bEN6PDuaGXNZMA1p40DjSkGc7epg0U4vHn6CSya1nXlqjXUqXYJY5Ha2kbMAN7hfmU+gId09+FSHQRuanKJkRqSBksVgATCAeSAiqAe3EPAsG75ewhXDeusQZMzRy7DxQzjOJG9oIyWMVmZFlIoNlpg2eifN9uUc7FfyGHiVfWwUDslszpc/81hQViMPP0NoMAop4zcWR3ChCMnHMycPQEmWuV65WfL7yN6SuTokxSmepubPtFs+4UIlI0rgZWCHVIgGZqI8LFn958pLtpQ+32Ew8HGU3IiOfao9HbGreQ2Lgqo2L2EyNDWiHfJ3oZ1+6BP/1GqI6j7x7oPdwoE1jvY4CSC7iMAiieZNnrvywvmJpZB69CGefxQJzWcm+yD03QwNBFFaabCbKwbn+q3eUOUrPRuvTkhVLRWDxQNH/zaZyuZQ+Q=
51+
distributions: "sdist bdist_wheel"
52+
on:
53+
tags: true
54+
repo: blue-yonder/tsfresh

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ addopts = tests
5757
addopts =
5858
--cov tsfresh --cov-report term-missing
5959
--verbose
60-
-n 4
60+
-n auto
6161

6262
[aliases]
6363
docs = build_sphinx

tests/integrations/__init__.py

Whitespace-only changes.
File renamed without changes.

0 commit comments

Comments
 (0)