# Request an environment that provides sudo (that goes with larger containers)
# and a minimal language environment.
sudo: true
language: minimal

cache: cargo

branches:
  only:
  - master

env:
  global:
    - RUST_BACKTRACE=1
  matrix:
    - RUST_TOOLCHAIN=nightly TARGET=wasm
    - RUST_TOOLCHAIN=stable TARGET=native

before_install:
  # Check how much space we've got on this machine.
  - df -h

script:
  - ./ci/script.sh

after_script:
  # Check how much free disk space left after the build
  - df -h
