language: r
sudo: required
before_script:
  - curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
  - sudo apt-get install git-lfs=1.1.0
# git-lfs 1.1.0 always prompts for a password, even when anonymous access is ok
# to bypass the prompt tell git to use a dummy credentials file:
  - git config --global credential.helper 'store --file .anonymous-git-credentials'
# On travis using git-lfs 1.1.0, must prevent git lfs from writing directly to stdout.
# This is a known bug for which a fix has been merged into upstream.
# see: https://github.com/github/git-lfs/issues/880 
  - git lfs fetch > /tmp/git-lfs-fetch.log
  - cat /tmp/git-lfs-fetch.log
  - git lfs checkout > /tmp/git-lfs-checkout.log
  - cat /tmp/git-lfs-checkout.log
script:
  - ./travis-tool.sh run_tests
  - R -e 'library(nardata);source("R/serialize_time_series.R"); serialize_time_series();'
  - test ! -n "`git ls-files -mo inst/extdata/`";

language: r
sudo: required
before_script:
  - curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
  - sudo apt-get install git-lfs=1.1.0
# git-lfs 1.1.0 always prompts for a password, even when anonymous access is ok
# to bypass the prompt tell git to use a dummy credentials file:
  - git config --global credential.helper 'store --file .anonymous-git-credentials'
# On travis using git-lfs 1.1.0, must prevent git lfs from writing directly to stdout.
# This is a known bug for which a fix has been merged into upstream.
# see: https://github.com/github/git-lfs/issues/880 
  - git lfs fetch > /tmp/git-lfs-fetch.log
  - cat /tmp/git-lfs-fetch.log
  - git lfs checkout > /tmp/git-lfs-checkout.log
  - cat /tmp/git-lfs-checkout.log
script:
  - R -e 'library(nardata);source("R/serialize_time_series.R"); serialize_time_series();'
  - test ! -n "`git ls-files -mo inst/extdata/`";

Revert "Trying to manually trigger the first part of the R build"
Revert "Trying to manually trigger the first part of the R build"

This reverts commit 8aa344174329afb1bb8f857a9cf30625a7c46067.
