Skip to content

Commit 9faa186

Browse files
committed
travis README notebook
1 parent 7bfba0f commit 9faa186

File tree

7 files changed

+1254
-0
lines changed

7 files changed

+1254
-0
lines changed

.travis.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
if [ "${1}" == "install" ]; then
2+
python3 -m pip install \
3+
jupyter jupyterlab ipython \
4+
plyvel \
5+
'https://github.com/OriHoch/dataflows/archive/specify-encoding-for-load.zip#egg=dataflows[speedup]' \
6+
'https://github.com/frictionlessdata/datapackage-pipelines/archive/2.0.0.zip#egg=datapackage-pipelines[speedup]'
7+
8+
elif [ "${1}" == "script" ]; then
9+
./render_notebook.sh QUICKSTART
10+
11+
elif [ "${1}" == "deploy" ]; then
12+
travis_ci_operator.sh github-update self master "
13+
cp -f $PWD/QUICKSTART.md $PWD/QUICKSTART.ipynb ./ &&\
14+
git add QUICKSTART.md QUICKSTART.ipynb
15+
" "update QUICKSTART notebook"
16+
17+
fi

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
language: python
2+
sudo: required
3+
python: ["3.6"]
4+
env:
5+
global:
6+
- TRAVIS_CI_OPERATOR=1
7+
- secure: "SkjWPaBjlZMQYnpZo3beBexwQZ6/FrnQL6s+pRC5Hb+rMPcuvyZj7iQiW4FeUIBDXeOwuVu8iy3VY4gHaZgwViEDeGLZPoCLf2eLhQSG55AC8S2GXn1dMX2//v2sIuxctCb/jHN66tvdqN6t+45qHbFnGwsQcciN2b8TRiSSnNGjEZg90pP0ZKCwyVstCkBgfMSvnp4MuT3EoEOnmhwrdhPVk4OO7mQp606N5csVB8ZNryXOiBSlKKAElFqrOeDmT+mmMuwhZQ1ftfRqvChxltWdUEkYkMTEzureWabl8PdaIe5xXoz6YPqaHqpgKm9LNblQn5k6FRltPu+Pp+7j8lEg8584Shi62hv+kUZHb3XpnUSoJYyfGqz2/fSH90zVZpvkVac7b+lRpHMv/CxrhYs9+UeNQHxDNTxDMQEDLWd300a6D0FVwOR1vLRPrlfOIG0KfkhhBbLxsAE4Q0wTYJFI8PBlX+bzYjPpP0KpJEL0oQxbWnWaHh+CgWKqQFLRl6z9JSQBiX9FOu0TTawspXTWMUrYu13KJiEbiEsBMFijLJ65rXwZZVOIz8YnmJ+ZYqLoQpBs/hkMth9jV3R201P4z6vNDg56A5j5N/S+11cA2hQ0X5B1r6y2JkJPEDaiZZcCBoAMdV2tQxucRU6AZRxgaAGpfimgaK50f1uspQs="
8+
- secure: "bzC20wujS9IpZ8/XMd1O2UUpCRZNvM++eO+TISk264uFoBA1zHvO0af3QxYULxexoMG1H5JHKurKnsJ/W7sWiQLC8aVylc8XtGp+ov4JqVivfOglBcYu2mCRhvYcFRKbRxyRTdcznXg2E35gjNih57waSEayc256R4LcHIxZTYYBtHrx9V6s6D4CFTf/cQtppGm7xZmeW5QQuZ9MZDjbp6uFtb53bsJes8EPt4vFLiTmygo+pSvCITjigE4K/hHUZVYyFJbYwMZk5tc+TXx4/MeIe3sYH8R6fMLtf1g9kBygBHGk/EZycW+CBTWFarenSzBUc9Bo6m1qGGgC5HiQS9QGLt99aGO7mm0A5M6iHWNIvz0URzaKGgAWf3OMMnlYsQGgrqeGoGUhPy/qP8JGIwlztHaP42GFuSq4h+cIEkZX5yflmIKQWfTNIWYo7pnsogWTrMKqZIwGC63ulzU9AP0pWnIjwiH0WjLu+r+LjmsGhXIdTrcI+xVz1s0J7k4F8txrpOol2JrvqvYKe89ydm3rp86uaL8yZGWbNLeZxonFEVrVOJrDf4qExGlRkL8n+wCsEgEPmrphc8sLUgDWNv4euld2xWknDrDr7mcmMDjhQsZKddgWP4dUTvDs+rdntjqWp8B19I+xROxfc3M2CMBZOMD0T96mE2YgIAVZW4A="
9+
services:
10+
- docker
11+
install:
12+
- curl -L https://raw.githubusercontent.com/OriHoch/travis-ci-operator/master/travis_ci_operator.sh > $HOME/bin/travis_ci_operator.sh
13+
- bash $HOME/bin/travis_ci_operator.sh init
14+
- travis_ci_operator.sh docker-login
15+
- bash .travis.sh install
16+
script:
17+
- bash .travis.sh script
18+
deploy:
19+
provider: script
20+
script: bash .travis.sh deploy
21+
skip_cleanup: true

QUICKSTART.ipynb

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

QUICKSTART.md

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

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Migdar Data Pipelines
22

3+
## Quickstart
4+
5+
[QUICKSTART.ipynb](QUICKSTART.ipynb)
36

47
## Running the pipelines locally
58

environment.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Create a conda environment using this file by running:
2+
# conda env create -f environment.yaml
3+
name: migdar-data-pipelines
4+
channels:
5+
- defaults
6+
dependencies:
7+
- ipython>=7.0.1
8+
- jupyter>=1.0.0
9+
- jupyterlab>=0.35.0
10+
- leveldb>=1.20
11+
- python=3.6
12+
- pip:
13+
- plyvel
14+
- https://github.com/OriHoch/dataflows/archive/specify-encoding-for-load.zip#egg=dataflows[speedup]
15+
- https://github.com/frictionlessdata/datapackage-pipelines/archive/2.0.0.zip#egg=datapackage-pipelines[speedup]

render_notebook.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
( [ -z "${MIGDAR_USERNAME}" ] || [ -z "${MIGDAR_PASSWORD}" ] ) && echo missing required env vars && exit 1
4+
5+
env MIGDAR_USERNAME="${MIGDAR_USERNAME}" MIGDAR_PASSWORD="${MIGDAR_PASSWORD}" \
6+
jupyter nbconvert --execute "${1}.ipynb" --to notebook --inplace --ExecutePreprocessor.timeout=-1 &&\
7+
jupyter nbconvert "${1}.ipynb" --to markdown

0 commit comments

Comments
 (0)