image: archlinux
sources:
  - https://github.com/alacritty/vte
tasks:
  - rustup: |
      curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable --profile minimal -c clippy
  - stable: |
      cd vte
      $HOME/.cargo/bin/cargo +stable test
      $HOME/.cargo/bin/cargo +stable test --features=ansi
      $HOME/.cargo/bin/cargo +stable test --features=ansi --no-default-features
  - clippy: |
      cd vte
      $HOME/.cargo/bin/cargo +stable clippy
      $HOME/.cargo/bin/cargo +stable clippy --features=ansi
  - rustfmt: |
      $HOME/.cargo/bin/rustup toolchain install nightly -c rustfmt
      cd vte
      $HOME/.cargo/bin/cargo +nightly fmt -- --check
  - 1-62-1: |
      $HOME/.cargo/bin/rustup toolchain install --profile minimal 1.62.1
      cd vte
      rm Cargo.lock
      $HOME/.cargo/bin/cargo +1.62.1 test
