sudo: false
language: erlang
otp_release:
  - 19.3.6.1
addons:
  apt:
    packages:
      - r-base
before_install:
  - ./ci before_install ${JOB:?} "${TRAVIS_BUILD_DIR:?}"
install:
  - ./ci install ${JOB:?} "${TRAVIS_BUILD_DIR:?}"
before_script:
  - ./ci before_script ${JOB:?} "${TRAVIS_BUILD_DIR:?}"
script:
  - ./ci script ${JOB:?} "${TRAVIS_BUILD_DIR:?}"
matrix:
  allow_failures:
  fast_finish: true
env:
  - JOB=minloadtest
  - JOB=dialyzer
  - JOB=xref
cache:
  directories:
    - .plt

dist: trusty
sudo: false
language: erlang
otp_release:
  - 19.3.6.1
addons:
  apt:
    packages:
      - r-base
before_install:
  - ./ci before_install ${JOB:?} "${TRAVIS_BUILD_DIR:?}"
install:
  - ./ci install ${JOB:?} "${TRAVIS_BUILD_DIR:?}"
before_script:
  - ./ci before_script ${JOB:?} "${TRAVIS_BUILD_DIR:?}"
script:
  - ./ci script ${JOB:?} "${TRAVIS_BUILD_DIR:?}"
matrix:
  allow_failures:
  fast_finish: true
env:
  - JOB=minloadtest
  - JOB=dialyzer
  - JOB=xref
cache:
  directories:
    - .plt

Fix for graphs on CI: prefer recent Ubuntu for finding R dependencies
Fix for graphs on CI: prefer recent Ubuntu for finding R dependencies

Prefer trusty to precise. See
https://docs.travis-ci.com/user/reference/trusty/#Routing-to-Trusty

Fixes the following error:
```
Rscript --vanilla priv/summary.r -i tests/current
[1] "plyr"
Loading required package: plyr
Installing package(s) into ‘/home/travis/build/lucafavatella/basho_bench/tmp/R_libs’
(as ‘lib’ is unspecified)
Error in library(p, character.only = TRUE) :
  there is no package called ‘plyr’
Calls: source -> eval.with.vis -> eval.with.vis -> library
In addition: Warning message:
In getDependencies(pkgs, dependencies, available, lib) :
  package ‘plyr’ is not available (for R version 2.14.1)
Execution halted
make: *** [results] Error 1
```
