Skip to content

Commit f7cb7c9

Browse files
committed
travis and ch01
1 parent fc55530 commit f7cb7c9

File tree

14 files changed

+691
-0
lines changed

14 files changed

+691
-0
lines changed

.travis.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
dist: trusty
2+
sudo: required
3+
language: python
4+
matrix:
5+
include:
6+
- python: 2.7
7+
env: LATEST="false" NUMPY_VERSION="1.11" SCIPY_VERSION="0.18" SKLEARN_VERSION="0.18" MATPLOTLIB_VERSION="2.0" PANDAS_VERSION="0.19"
8+
- python: 3.5
9+
env: LATEST="false"
10+
- python: 3.6
11+
env: LATEST="true"
12+
13+
install:
14+
- sudo apt-get update
15+
- source .travis/install_travis_env.sh
16+
script:
17+
- bash .travis/run_travis_tests.sh
18+
#after_success:
19+
# - if [[ "${COVERAGE}" == "true" ]]; then coveralls; codecov; else echo "failed"; fi
20+
notifications:
21+
email:
22+
recipients:
23+
- mail@sebastianraschka.com
24+
on_success: always
25+
on_failure: always

.travis/install_travis_env.sh

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
#!/usr/bin/env bash
2+
3+
# Installing MINICONDA
4+
5+
set -e
6+
7+
if [ "${TRAVIS_PYTHON_VERSION}" == "2.7" ]; then
8+
wget http://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
9+
else
10+
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
11+
fi
12+
13+
14+
bash miniconda.sh -b -p $HOME/miniconda
15+
export PATH="$HOME/miniconda/bin:$PATH"
16+
hash -r
17+
conda config --set always_yes yes --set changeps1 no
18+
conda update -q conda
19+
conda info -a
20+
21+
22+
# Setting up the Test Environment
23+
24+
if [ "${LATEST}" = "true" ]; then
25+
conda create -q -n testenv --yes python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib scikit-learn pandas;
26+
else
27+
conda create -q -n testenv --yes python=$TRAVIS_PYTHON_VERSION numpy=$NUMPY_VERSION scipy=$SCIPY_VERSION matplotlib=$MATPLOTLIB_VERSION scikit-learn=$SKLEARN_VERSION pandas=$PANDAS_VERSION;
28+
fi
29+
30+
source activate testenv
31+
32+
conda install -q -y pip
33+
34+
python --version
35+
python -c "import numpy; print('numpy %s' % numpy.__version__)"
36+
python -c "import scipy; print('scipy %s' % scipy.__version__)"
37+
python -c "import matplotlib; print('matplotlib %s' % matplotlib.__version__)"
38+
python -c "import sklearn; print('sklearn %s' % sklearn.__version__)"
39+
python -c "import pandas; print('pandas %s' % pandas.__version__)"
40+
41+
pip install --upgrade pip
42+
43+
if [ "${COVERAGE}" = "true" ]; then
44+
pip install coveralls
45+
fi
46+
47+
pip install watermark;
48+
pip install nbformat;

.travis/run_travis_tests.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
python -m unittest discover code -v

LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2017 SEBASTIAN RASCHKA (mail@sebastianraschka.com)
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

code/ch01/ch01.ipynb

Lines changed: 592 additions & 0 deletions
Large diffs are not rendered by default.

code/ch01/images/01_01.png

329 KB
Loading

code/ch01/images/01_02.png

263 KB
Loading

code/ch01/images/01_03.png

520 KB
Loading

code/ch01/images/01_04.png

423 KB
Loading

code/ch01/images/01_05.png

164 KB
Loading

0 commit comments

Comments
 (0)