language: python

python:
    - "2.7"

install:
    - pip install -r requirements.txt
    - npm install

script:
    - npm run apidocs

after_success:
    - npm run apidocs-deploy

language: python

python:
    - "2.7"

install:
    - pip install -r requirements.txt
    - npm install

script:
    - npm run apidocs

deploy:
    provider: script
    script: npm run apidocs-deploy
    on:
        branch: master

Set up conditional deploys on Travis
Set up conditional deploys on Travis
