Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DC motor driver hat
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software
DC motor driver hat
Commits
e3f341ef
Commit
e3f341ef
authored
8 months ago
by
Samuel Tardieu
Browse files
Options
Downloads
Patches
Plain Diff
Add gitlab CI file
parent
097560f1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2
Gitlab ci
Pipeline
#97350
passed
8 months ago
Stage: check
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+52
-0
52 additions, 0 deletions
.gitlab-ci.yml
with
52 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
52
−
0
View file @
e3f341ef
stages
:
-
check
-
build
-
test
-
deploy
rust-lint
:
image
:
rust
stage
:
check
script
:
-
rustup default nightly
-
rustup component add rustfmt clippy
-
rustup target install thumbv7m-none-eabi
-
cargo fmt --all --check
-
cargo clippy --all
python-lint
:
image
:
alpine
stage
:
check
script
:
-
apk add py3-flake8
-
flake8
build-rust
:
image
:
rust
stage
:
build
script
:
-
rustup default nightly
-
rustup target install thumbv7m-none-eabi
-
cargo build --release
artifacts
:
paths
:
-
target/thumbv7m-none-eabi/release/dc-motor-driver-hat
test-rust
:
image
:
rust
stage
:
test
script
:
-
rustup default nightly
-
cd pid
-
cargo test --target x86_64-unknown-linux-gnu
deploy
:
image
:
alpine
stage
:
deploy
script
:
-
mkdir firmware
-
cp target/thumbv7m-none-eabi/release/dc-motor-driver-hat firmware/
-
cp controller/python/controller.py firmware/
artifacts
:
paths
:
-
firmware/
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment