Commit f3a3b5b7 authored by Bharath Ramsundar's avatar Bharath Ramsundar
Browse files

First attempt at automatic docs-build+push

parent fd27b49b
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
language: python
python:
  # We don't actually use the Travis Python, but this keeps it organized.
  - "2.7"
- '2.7'
install:
- sudo apt-get update
- wget http://repo.continuum.io/archive/Anaconda2-2.4.1-Linux-x86_64.sh -O anaconda.sh;
@@ -10,11 +9,7 @@ install:
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
  # Useful for debugging any issues with conda
- conda info -a

  # Replace dep1 dep2 ... with your dependencies
  #- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION dep1 dep2 ...
- conda install -c omnia rdkit
- conda install -c omnia openbabel
- conda install joblib
@@ -26,6 +21,14 @@ install:
- python setup.py install
- popd
- python setup.py develop

script:
- nosetests -v deepchem

env:
  global:
  # encrypted AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY to push documentation to S3
  - secure: "phb7WC1IFAY2UkANd0ydiME/Abt9g73DcqkIrjt5I9UMG3gqMXtZ5wn2X3eolZQdmHVG/1ZheEf+XX1F1+12c3FlD2kVQWkpuOBAJMzjlqe7KwrAclFopqQa5Lro4kH5gAz5GOkXuaWY9CmL/WObOCnVq3MKmbJRO3jTnLU5OxD/ecbfZUZXFQsWegp5A/DiYjG7BjBqD90BCNKNGGd8ALZDEojOu0wJQuwm/1pG4CjgT79ji4S+ygnjnA3/bJf+j1gzTo5naJyqHPITO1N71uQlb9ZZmUhzLveRu2tANSAPyxnUUI6daTpRRQUKof75QggnPbGPsj+IF/DL69YOeTXAVeTT4Stt9k6gWjTPCVQOb36fkMbYNMKaIN4L33WBsXJXqxJ5i9LXMCMoeCYB92p56q2Wp5TvhS2SgRX+rLmZCd29dN7aN31X61XsjKImr846DyABnlinZ2faUG5HNa2tOEm1xuHatW8UGMNHBkhR0rUMIlZaVYv7kQtbH8uGRwsRQH326pmMmQJwLkVe9l78cScN/C7ETvPimCBZEwjiw0shNelao52z39JlLKSvuPll172dbubb5aEls/1+uAWsQ05KnjtUlMBsARtRv99RVKDvsNUqlTAjQbWDj82JktLf+FATSAZ7s5Sj9yLWKD+QiO3Ug8JNpf6+ezm8mBo="
  - secure: "Qu0HJwAAzxcavXcDn7mIczNc3sv3xZNYs0LPoCEsJ4azjewFAC9KwI9tptqdbnEkcRJ3cyHde2n+CLg67+m3KTg9s6hoJ+lUSb+jW97zSVXusF4p3vprak+i2dqnH8JAwMD2mOktmSC+FKsQEUzm0gwwCg1BPzxJTsTngWKjYqRk5aAddSMGrVojV+D3mQoyZhqI+eCg7YRb3bl43aPwrcy11yDLhmEbP/8zEuabu02IG3Eix7qJghALbTaRi2amNSmS900y70Jm6uvIX+cUnkXJImUQathwrbIUJfQLTTQN6Rs5prR5MRd2a9Dtcp1ZtnQykNpfZ6bn847jdDtBx3emovvj4CQMEoxhTSUgePjYhU3rU7lVa5tIt2ZITL638MnZUHXVj36bZXzYJpmKZK9tUFQAp7RdjCf8twdfxaQYaVj6buZrJtD0EYDCyLtSA2KHkY48Z6+8z6idxL3vPACnuREsBpRc9I/oyJ9ygrXR9ghUdS0Pt+0YQwzkBvW3dREDdQL/ibWoI3WTXEY0y7TO/LfAAkk51MBE79xdq4EilzVrMEzGlsihPI6dGbYvF2V8+jBGN1XPayHPFIL4QBJuCo1sk7lXf55siAyMElq1uTmKTF3qn1BXs7p8DSyQQ5+S/CeWokOPNYZTpvWgM0B/BvMt2wJwcVQoOtlQM9o="

after_success:
  - source devtools/travis-ci/after_sucess.sh
+6 −0
Original line number Diff line number Diff line
This is a recipe for building the current development package into a conda
binary.

The installation on travis-ci is done by building the conda package,
installing it, running the tests, and then if successful pushing the
docs to AWS S3.
+2 −0
Original line number Diff line number Diff line
#!/bin/bash
pip install .
+59 −0
Original line number Diff line number Diff line
package:
  name: deepchem
  version: "0.0.4"

source:
    git_url: https://github.com/pandegroup/deepchem/
    git_tag: 0.0.4

build:
  number: 0
  skip:
    - [osx or win]
    - [py3k]


requirements:
  build:
    - python
    - setuptools
    - numpy
    - scipy
    - pandas
    - scikit-learn
    - keras
    - theano ==0.7.2
    - rdkit
    - openbabel 
    - joblib
    - pbr
    - h5py
  run:
    - python
    - setuptools
    - numpy
    - scipy
    - pandas
    - scikit-learn
    - keras
    - theano ==0.7.2
    - rdkit
    - openbabel 
    - joblib
    - pbr
    - h5py

test:
  requires:
    - nose

  imports:
    - deepchem

  commands:
    #- nosetests -v deepchem

about:
  home: https://github.com/pandegroup/deepchem
  license: LGPLv2.1+
  summary: 'deepchem: Deep-learning models for drug discovery and quantum chemistry'
+25 −0
Original line number Diff line number Diff line
echo $TRAVIS_PULL_REQUEST $TRAVIS_BRANCH

if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
    echo "This is a pull request. No deployment will be done."; exit 0
fi


if [[ "$TRAVIS_BRANCH" != "master" ]]; then
    echo "No deployment on BRANCH='$TRAVIS_BRANCH'"; exit 0
fi


if [[ "$python" == "2.7" ]]; then
    # Create the docs and push them to S3
    # -----------------------------------

    conda install --yes `conda build devtools/conda-recipe --output`
    pip install numpydoc s3cmd
    conda install --yes `cat docs/requirements.txt | xargs`

    conda list -e
    mkdir -p docs/_build
    sphinx build -b html docs docs/_build
    python devtools/travis-ci/push-docs-to-s3.py
fi
Loading