-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to docker based build for Travis
1. Won't time out 2. More reproducible 3. If @cgreene does it, it must be good
- Loading branch information
1 parent
07c4b0a
commit d59d65b
Showing
2 changed files
with
21 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
language: r | ||
cache: packages | ||
sudo: false | ||
warnings_are_errors: false | ||
language: bash | ||
sudo: required | ||
|
||
install: | ||
- Rscript install-packages.R | ||
|
||
script: | ||
- Rscript PortalForecasts.R | ||
before_install: | ||
- docker pull weecology/portal_predictions | ||
- docker run --name ppred -t -d weecology/portal_predictions /bin/bash | ||
|
||
after_success: | ||
- bash update_repo.sh | ||
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Use an official Python runtime as a parent image | ||
FROM rocker/tidyverse:latest | ||
|
||
# Install `curl` since apparently it isn't in the Rocker images | ||
|
||
RUN apt-get update && apt-get install -y curl | ||
|
||
# Copy the install script | ||
ADD install-packages.R . | ||
|
||
# Install any needed packages specified in requirements.txt | ||
RUN Rscript install-packages.R |