Skip to content

Commit b13abe0

Browse files
committed
add shippable build
1 parent 0262ab4 commit b13abe0

File tree

5 files changed

+38
-14
lines changed

5 files changed

+38
-14
lines changed

conda-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ scikit-learn
66
jupyter
77
pytables
88
nose
9+
nosexcover

install-conda.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
#!/bin/bash
22
CONDA_DIR=$HOME/.omegaml/miniconda
3-
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh
3+
wget -q https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh
44
chmod +x Miniconda2-latest-Linux-x86_64.sh
55
./Miniconda2-latest-Linux-x86_64.sh -b -p $CONDA_DIR
66
echo "PATH=$CONDA_DIR:\$PATH" >> $HOME/.bashrc
7-
export PATH=$CONDA_DIR:$PATH
8-
conda install --file conda-requirements.txt
7+
export PATH=$CONDA_DIR/bin:$PATH
8+
conda install -y -q --file conda-requirements.txt
9+
pip install -r pip-requirements.txt
910
conda env list
1011

pip-requirements.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Django==1.7.11
2+
celery==3.1.25
3+
joblib==0.9.4
4+
pymongo==3.2.2
5+
mongoengine==0.10.6
6+
runipy==0.1.5
7+
croniter==0.3.12
8+
PyYAML==3.11
9+
nbformat==4.0.1
10+
git+https://github.com/miraculixx/pycloudfs@v0.1.0#egg=pycloudfs-0.1.0
11+
django-extensions==1.7.7

requirements.txt

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
Django==1.7.11
2-
celery==3.1.25
3-
joblib==0.9.4
4-
pymongo==3.2.2
5-
mongoengine==0.10.6
6-
runipy==0.1.5
7-
croniter==0.3.12
8-
PyYAML==3.11
9-
nbformat==4.0.1
10-
git+https://github.com/miraculixx/pycloudfs@v0.1.0#egg=pycloudfs-0.1.0
11-
django-extensions==1.7.7
1+
# keep shippable happy
2+
pip
3+

shippable.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
build-environment: Ubuntu 12.04
2+
language: python
3+
services:
4+
- mysql
5+
before_script:
6+
- bash ./install-conda.sh
7+
# init for mongodb v3.2.0
8+
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
9+
- echo "deb http://repo.mongodb.org/apt/ubuntu precise/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
10+
- sudo apt-get -y update
11+
- shippable_retry sudo apt-get install -y mongodb-org=3.2.7 mongodb-org-server=3.2.7 mongodb-org-shell=3.2.7 mongodb-org-mongos=3.2.7 mongodb-org-tools=3.2.7
12+
- sudo su -c "/usr/bin/mongod -f /etc/mongod.conf --smallfiles > /dev/null 2>&1 &"
13+
# end for mongodb
14+
script:
15+
- PATH=$HOME/.omegaml/miniconda/bin:$PATH nosetests -v
16+
--with-xunit --xunit-file=shippable/testresults/nosetests.xml
17+
--with-xcoverage --cover-package=omegaml
18+
--cover-tests --xcoverage-file=shippable/codecoverage/coverage.xml
19+

0 commit comments

Comments
 (0)