forked from atsams-rs/atsamx7x-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat/ci' into 'master'
meta: add CI configuration Closes atsams-rs#21 See merge request embedded-rust/atsamx7x-hal!14
- Loading branch information
Showing
16 changed files
with
189 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM rust:1.61.0-slim | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
binutils-arm-none-eabi \ | ||
git \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN rustup target add thumbv7em-none-eabihf && \ | ||
rustup component add rustfmt && \ | ||
rustup component add clippy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This directory contains the `Dockerfile` used in the CI of the HAL. See [GitLab Container Registry documentation](https://git.grepit.se/embedded-rust/atsamx7x-hal/container_registry) for update instructions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
image: "registry.git.grepit.se/embedded-rust/atsamx7x-hal" | ||
|
||
stages: | ||
- HAL | ||
- examples | ||
- lint | ||
|
||
default: | ||
before_script: | ||
- rustup show | ||
|
||
samv71q21b: | ||
stage: HAL | ||
script: | ||
- cd hal | ||
- cargo check --features samv71q21b,unproven | ||
|
||
same70n21b: | ||
stage: HAL | ||
script: | ||
- cd hal | ||
- cargo check --features same70n21b,unproven | ||
|
||
e70: | ||
stage: examples | ||
script: | ||
- cd boards/atsame70_xpro | ||
- cargo check --examples | ||
|
||
v71: | ||
stage: examples | ||
script: | ||
- cd boards/atsamv71_xult | ||
- cargo check --examples | ||
|
||
fmt: | ||
stage: lint | ||
needs: [] | ||
script: | ||
- cd hal | ||
- cargo fmt -- --check | ||
- cd ../boards/atsame70_xpro | ||
- cargo fmt -- --check | ||
- cd ../atsamv71_xult | ||
- cargo fmt -- --check | ||
|
||
clippy: | ||
stage: lint | ||
allow_failure: true | ||
needs: ["samv71q21b"] | ||
script: | ||
- cd hal | ||
- cargo clippy --no-deps --features samv71q21b,unproven | ||
- cd ../boards/atsame70_xpro | ||
- cargo clippy --examples --no-deps | ||
- cd ../atsamv71_xult | ||
- cargo clippy --examples --no-deps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.