language: bash
sudo: required

before_install:
  - docker pull weecology/portal_predictions
  - docker run --name ppred -t -d weecology/portal_predictions /bin/bash

script:
  - docker exec -i ppred git clone https://github.com/weecology/portalPredictions.git
  - docker exec -i ppred bash -c "cd portalPredictions && Rscript PortalForecasts.R"
  - docker exec -i ppred bash -c "cd portalPredictions && bash update_repo.sh"

language: bash
sudo: required

before_install:
  - docker pull weecology/portal_predictions
  - docker run --name ppred -t -d weecology/portal_predictions /bin/bash

script:
  - docker exec -i ppred git clone https://github.com/weecology/portalPredictions.git
  - docker exec -i ppred bash -c "cd portalPredictions && Rscript PortalForecasts.R"
  - docker cp ppred:/portalPredictions portalPredictionsResult
  - cd portalPredictionsResult
  - bash update_repo.sh

Copy repo out of docker before updating repo
Copy repo out of docker before updating repo

This allows us to handle the deploy key safely in the main Travis
environment.
