Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ICBM
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
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
detectors
DSSC
ICBM
Commits
a38dc779
Commit
a38dc779
authored
1 year ago
by
Cyril Danilevski
Browse files
Options
Downloads
Patches
Plain Diff
Add CI
parent
8dfa3fa4
No related branches found
No related tags found
1 merge request
!1
Add CI
Pipeline
#130659
canceled
1 year ago
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+40
-0
40 additions, 0 deletions
.gitlab-ci.yml
.gitlab/merge_request_templates/Default.md
+39
-0
39 additions, 0 deletions
.gitlab/merge_request_templates/Default.md
README.md
+8
-1
8 additions, 1 deletion
README.md
with
87 additions
and
1 deletion
.gitlab-ci.yml
0 → 100644
+
40
−
0
View file @
a38dc779
build
:
image
:
europeanxfel/karabo-ci:ubuntu-22-003
script
:
# Set up Arduino environment
-
cat /etc/os-release
-
apt-get install -y wget python3-pip
-
wget -nv
https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_Linux_64bit.tar.gz
-
tar -xf arduino-cli_latest_Linux_64bit.tar.gz
-
mv arduino-cli /usr/bin/arduino-cli
# Configure arduino-cli
-
echo "board_manager:" > arduino-cli.yaml
-
echo " additional_urls:" >> arduino-cli.yaml
-
echo " - https://dl.espressif.com/dl/package_esp32_index.json" >> arduino-cli.yaml
-
echo "library:" >> arduino-cli.yaml
-
echo -n " enable_unsafe_install:" >> arduino-cli.yaml
-
echo "
true
" >> arduino-cli.yaml
-
cat -E arduino-cli.yaml
# Set up esp32 support
-
arduino-cli core update-index --config-file arduino-cli.yaml
-
arduino-cli core install esp32:esp32
# Add pyserial for esp32 to chooch
-
pip3 install pyserial
# Install dependencies
-
arduino-cli lib install Ethernet
-
arduino-cli lib install --git-url https://github.com/patricklaf/SNMP.git --config-file arduino-cli.yaml
# Compile artifact
-
arduino-cli compile --fqbn esp32:esp32:esp32wroverkit icbm.ino --output-dir firmware
-
zip -r firmware.zip firmware
artifacts
:
when
:
always
paths
:
-
firmware.zip
expire_in
:
1 week
interruptible
:
true
This diff is collapsed.
Click to expand it.
.gitlab/merge_request_templates/Default.md
0 → 100644
+
39
−
0
View file @
a38dc779
<!--- Provide a general summary of your changes in the Title above. -->
## Description
<!--- Why is this change required? What problem does it solve?
If it fixes an issue, please link to the issue here. -->
## How Has This Been Tested?
<!--- Please describe in detail how you tested your changes.
Include details of your testing environment, tests ran to see how
your change affects other areas of the code, etc. -->
## Relevant Documents (optional)
<!-- Include any relevant screenshot, elogs, report, if appropriate. -->
## Types of changes
<!--- What types of changes does your code introduce? Leave lines that apply: -->
-
[ ] Bug fix (non-breaking change which fixes an issue)
-
[ ] New feature (non-breaking change which adds functionality)
-
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
-
[ ] Docs (changes to the documentation)
-
[ ] Style (formatting changes only, no code changes)
-
[ ] Refactor (refactoring code with no functionality changes)
-
[ ] Test (additional or refactored tests)
-
[ ] Chore (non-code changes, e.g. comments, readme, grammar, etc...)
## Checklist:
<!--- Go over all the following points, and check all that apply: -->
-
[ ] My code follows the code style of this project.
-
[ ] My change requires a change to the documentation.
-
[ ] I have updated the documentation accordingly.
-
[ ] I added tests where appropriate.
## Reviewers
<!--- Specify who is to review the changes -->
-
[ ] I need a review from:
-
[ ] I have asked Controls for review
This diff is collapsed.
Click to expand it.
README.md
+
8
−
1
View file @
a38dc779
...
...
@@ -53,4 +53,11 @@ The project can be compiled so:
And uploaded so:
arduino-cli upload -p /dev/ttyUSB1 --fqbn esp32:esp32:esp32wroverkit .
arduino-cli upload -p /dev/ttyUSB1 --fqbn esp32:esp32:esp32wroverkit
### CI Artefacts
CI artefacts can be uploaded so:
unzip firmware.zip
arduino-cli upload -p /dev/ttyUSB1 --fqbn esp32:esp32:esp32wroverkit --input-dir 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