language: rust
sudo: false
rust:
  - nightly

os:
  - linux
  - osx

env:
  - FEATURES="unstable"
  - FEATURES="unstable force-inprocess"

notifications:
  webhooks: http://build.servo.org:54856/travis

script:
  - cargo build --features "$FEATURES"
  - cargo test --features "$FEATURES"

language: rust
sudo: false

matrix:
  include:
    - os: linux
      rust: nightly
      env: FEATURES="unstable"
    - os: linux
      rust: nightly
      env: FEATURES="unstable force-inprocess"
    - os: linux
      rust: nightly
      env: FEATURES="unstable memfd"
    - os: osx
      rust: nightly
      env: FEATURES="unstable"
    - os: osx
      rust: nightly
      env: FEATURES="unstable force-inprocess"

notifications:
  webhooks: http://build.servo.org:54856/travis

script:
  - cargo build --features "$FEATURES"
  - cargo test --features "$FEATURES"

Add CI build with memfd feature
Add CI build with memfd feature

Update the travis CI config to include a build forcing the memfd feature
to be used. Switching to an explicit build matrix was required as the
memfd feature is not used for any target OSes other than linux.
