language: rust

rust:
  - stable
  - beta
  - nightly

os:
  - linux

cache: cargo

matrix:
  allow_failures:
    - rust: nightly

script:
  - cargo test -vv --no-default-features --features=$FEATURE

addons:
  apt:
    packages:
      - cmake
      - gfortran
      - liblapack-dev
      - libopenblas-dev

env:
  - RUST_BACKTRACE=1 FEATURE=netlib
  - RUST_BACKTRACE=1 FEATURE=netlib-system
  - RUST_BACKTRACE=1 FEATURE=openblas
  - RUST_BACKTRACE=1 FEATURE=openblas-system

language: rust
sudo: required

rust:
  - stable
  - beta
  - nightly

os:
  - linux

cache: cargo

matrix:
  allow_failures:
    - rust: nightly

script:
  - cargo test -vv --no-default-features --features=$FEATURE

addons:
  apt:
    sources:
      - kubuntu-backports

    packages:
      - cmake
      - gfortran
      - liblapack-dev
      - libopenblas-dev

env:
  - RUST_BACKTRACE=1 FEATURE=netlib
  - RUST_BACKTRACE=1 FEATURE=netlib-system
  - RUST_BACKTRACE=1 FEATURE=openblas
  - RUST_BACKTRACE=1 FEATURE=openblas-system

Revert "CI: remove sudo and kubuntu backports"
Revert "CI: remove sudo and kubuntu backports"

This reverts commit a6b364ee773e801fc3639f7a8a9608df94ebbffe.
