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 install-packages.R"
  - docker exec -i ppred bash -c "cd portalPredictions && Rscript tools/prepare_data.R"
  - docker exec -i ppred bash -c "cd portalPredictions && Rscript PortalForecasts.R"
  - docker exec -i ppred bash -c "cd portalPredictions && Rscript tests/testthat.R"
  - docker cp ppred:/portalPredictions portalPredictionsResult
  - cd portalPredictionsResult
  - 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
  - docker cp ../portalPredictions ppred:/
  - docker exec -i ppred ls portalPredictions

script:
  - docker exec -i ppred bash -c "cd portalPredictions && Rscript install-packages.R"
  - docker exec -i ppred bash -c "cd portalPredictions && Rscript tools/prepare_data.R"
  - docker exec -i ppred bash -c "cd portalPredictions && Rscript PortalForecasts.R"
  - docker exec -i ppred bash -c "cd portalPredictions && Rscript tests/testthat.R"
  - docker cp ppred:/portalPredictions portalPredictionsResult
  - cd portalPredictionsResult
  - bash update_repo.sh

Use current repository root instead of master for Travis
Use current repository root instead of master for Travis

This allows PRs and branches to be tested properly.

Fixes #131
