~janbaudisch/nucleo-l432

436698a2c7837c6ff72c15ecb29bfbfe62305a54 — Jan Baudisch 10 months ago a83ff33
move to sourcehut
6 files changed, 84 insertions(+), 26 deletions(-)

A .builds/beta.yml
A .builds/lint.yml
A .builds/nightly.yml
A .builds/stable.yml
D .travis.yml
M README.md
A .builds/beta.yml => .builds/beta.yml +20 -0
@@ 0,0 1,20 @@
image: archlinux
package:
  - base-devel
  - curl
sources:
  - https://git.sr.ht/~janbaudisch/nucleo-l432
tasks:
  - setup: |
      curl -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain beta
      . $HOME/.cargo/env
      rustup component add llvm-tools-preview
      rustup target add thumbv7em-none-eabihf
  - build: |
      . $HOME/.cargo/env
      cd nucleo-l432
      cargo build --verbose --all
  - test: |
      . $HOME/.cargo/env
      cd nucleo-l432
      cargo test --verbose --all

A .builds/lint.yml => .builds/lint.yml +22 -0
@@ 0,0 1,22 @@
image: archlinux
package:
  - base-devel
  - curl
sources:
  - https://git.sr.ht/~janbaudisch/nucleo-l432
tasks:
  - setup: |
      curl -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable
      . $HOME/.cargo/env
      rustup component add llvm-tools-preview
      rustup component add clippy
      rustup component add rustfmt
      rustup target add thumbv7em-none-eabihf
  - format: |
      . $HOME/.cargo/env
      cd nucleo-l432
      cargo fmt --all -- --check
  - lint: |
      . $HOME/.cargo/env
      cd nucleo-l432
      cargo clippy --all -- --deny clippy::all

A .builds/nightly.yml => .builds/nightly.yml +20 -0
@@ 0,0 1,20 @@
image: archlinux
package:
  - base-devel
  - curl
sources:
  - https://git.sr.ht/~janbaudisch/nucleo-l432
tasks:
  - setup: |
      curl -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
      . $HOME/.cargo/env
      rustup component add llvm-tools-preview
      rustup target add thumbv7em-none-eabihf
  - build: |
      . $HOME/.cargo/env
      cd nucleo-l432
      cargo build --verbose --all
  - test: |
      . $HOME/.cargo/env
      cd nucleo-l432
      cargo test --verbose --all

A .builds/stable.yml => .builds/stable.yml +20 -0
@@ 0,0 1,20 @@
image: archlinux
package:
  - base-devel
  - curl
sources:
  - https://git.sr.ht/~janbaudisch/nucleo-l432
tasks:
  - setup: |
      curl -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable
      . $HOME/.cargo/env
      rustup component add llvm-tools-preview
      rustup target add thumbv7em-none-eabihf
  - build: |
      . $HOME/.cargo/env
      cd nucleo-l432
      cargo build --verbose --all
  - test: |
      . $HOME/.cargo/env
      cd nucleo-l432
      cargo test --verbose --all

D .travis.yml => .travis.yml +0 -24
@@ 1,24 0,0 @@
language: rust

rust:
  - stable
  - beta
  - nightly

cache: cargo

install:
  - rustup component add llvm-tools-preview
  - rustup target add thumbv7em-none-eabihf

jobs:
  include:
    - stage: lint
      rust: stable
      install: rustup component add clippy
      script: cargo clippy --all

    - stage: format
      rust: stable
      install: rustup component add rustfmt
      script: cargo fmt --all -- --check

M README.md => README.md +2 -2
@@ 47,6 47,6 @@ _**Note:**_ I have not tested any other platform.

`memory.x` may need some adjustment.

[build-img]: https://travis-ci.com/janbaudisch/nucleo-l432.svg?branch=master
[build-url]: https://travis-ci.com/janbaudisch/nucleo-l432
[build-img]: https://builds.sr.ht/~janbaudisch/nucleo-l432.svg
[build-url]: https://builds.sr.ht/~janbaudisch/nucleo-l432
[board]: https://www.st.com/en/evaluation-tools/nucleo-l432kc.html