language: rust
rust:
  - nightly
cache: cargo

addons:
  apt:
    sources:
      - debian-sid
    packages:
      - binutils-arm-none-eabi

env:
  - TARGET=x86_64-unknown-linux-gnu
  - TARGET=thumbv6m-none-eabi


before_script:
  - export PATH="$PATH:$HOME/.cargo/bin"
  - which xargo || (cd .. && cargo install xargo -f --vers 0.3.8)
  - rustup component list | grep 'rust-src.*installed' || rustup component add rust-src
  - which cargo-install-update || (cd .. && cargo install cargo-update)
  - (cd .. && cargo install-update rustfmt-nightly -i)
  - set -e

script:
  - xargo check --target $TARGET
  - . ./ci/lint.sh

after_script:
  - set +e

language: rust
rust:
  - nightly
cache: cargo

addons:
  apt:
    sources:
      - debian-sid
    packages:
      - binutils-arm-none-eabi

env:
  - TARGET=x86_64-unknown-linux-gnu
  - TARGET=thumbv6m-none-eabi


before_script:
  - export PATH="$PATH:$HOME/.cargo/bin"
  - which xargo || (cd .. && cargo install xargo -f --vers 0.3.8)
  - rustup component list | grep 'rust-src.*installed' || rustup component add rust-src
  - which cargo-install-update || (cd .. && cargo install cargo-update)
  - (cd .. && cargo install-update rustfmt-nightly -i)
  - set -e

script:
  - cargo clean
  - xargo check --target $TARGET
  - . ./ci/lint.sh

after_script:
  - set +e

Clean due to xargo issue.
Clean due to xargo issue.

https://github.com/japaric/xargo/issues/189
