language: c
sudo: required
dist: focal

jobs:
  include:
    - name: linux
      os: linux

env:
  DRAT_REPOS: "jranke"
  global:
    - USE_BSPM="true"
    - NOT_CRAN="true"

before_install:
  - curl -OLs https://eddelbuettel.github.io/r-ci/run.sh && chmod 0755 run.sh
  - ./run.sh bootstrap

install:
  - ./run.sh install_all
  - ./run.sh install_github jranke/saemixextension@installable_dev_version

script:
  - travis_wait 30 ./run.sh run_tests

after_failure:
  - ./run.sh dump_logs

after_success:
  - travis_wait 30 ./run.sh coverage