https://github.com/aimalz/proclam
Raw File
Tip revision: 9b0d6e4d8f90ca0a1e8363505b79f48c6617a134 authored by Alex Malz on 01 May 2018, 17:59:41 UTC
fixed directory mistake
Tip revision: 9b0d6e4
.travis.yml
language: python

install:
  - sudo apt-get update
  # Install the dependencies and the package:
  - pip install -r requirements.txt
  - python setup.py install
  # Now get set up to run jupyter notebooks:
  - sudo apt-get install texlive-latex-recommended
  - sudo apt-get install texlive-latex-extra
  - sudo apt-get install texlive-fonts-recommended
  - sudo apt-get install chktex
  - sudo apt-get install dvipng
  - pip install --upgrade jupyter
  - pip install nbconvert
  # Finally get set up to build the docs

script:
  # Run the unit tests:
#   - nosetests
  # Run the demo notebook, to make demo.html:
  - jupyter nbconvert --ExecutePreprocessor.kernel_name=python --ExecutePreprocessor.timeout=600 --to html --execute pipeline_sandbox.ipynb

# Finally, if it's the master branch being updated, force-push the
# notebook html pages to an otherwise empty "html" branch:
#    if [ -n "$GITHUB_API_KEY" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
after_success: |
    if [ -n "$GITHUB_API_KEY" ]; then
        git checkout --orphan html
        git rm -rf .
        git add -f pipeline_sandbox.html
        git -c user.name='travis' -c user.email='travis' commit -m init
        git push -q -f https://aimalz:$GITHUB_API_KEY@github.com/aimalz/proclam html
    fi
back to top