language: r
cache: packages
sudo: false
warnings_are_errors: false

install:
  - Rscript install-packages.R
  
script:
  - Rscript PortalForecasts.R

deploy:
  provider: script
  skip_cleanup: true
  script: deploy.sh
  on:
    branch: master

language: r
cache: packages
sudo: false
warnings_are_errors: false

install:
  - Rscript install-packages.R
  
script:
  - Rscript PortalForecasts.R

deploy:
  provider: pages
  skip_cleanup: true
  local_dir: docs
  github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
  on:
    branch: master
Switch back to token based deployment
Switch back to token based deployment

We now uses a separate deploy account to allow us to do this the
easy way but also securly.
