.travis.yml 419 B

1234567891011121314151617
  1. language: rust
  2. env:
  3. -
  4. - TARGET=aarch64-unknown-linux-gnu
  5. - TARGET=x86_64-unknown-redox
  6. rust:
  7. - nightly
  8. cache: cargo
  9. before_script:
  10. - rustup component add rustfmt-preview
  11. - if [ -n "$TARGET" ]; then rustup target add $TARGET; fi
  12. script:
  13. - ./fmt.sh -- --write-mode=diff
  14. - cargo build $([ -n "$TARGET" ] && echo --target="$TARGET")
  15. - if [ -z "$TARGET" ]; then ./test.sh; fi
  16. notifications:
  17. email: false