Skip to content

Commit

Permalink
[ci] Add SAMD devices to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
salkinium committed Jul 5, 2020
1 parent 6dbeb59 commit 6c4a8d6
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 3 deletions.
24 changes: 24 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,23 @@ jobs:
path: test/all/log
destination: log

samd-compile-all:
docker:
- image: modm/modm-build:latest
steps:
- checkout
- run:
name: Checkout code and update modm tools
command: |
(git submodule sync && git submodule update --init --jobs 8) & pip3 install --upgrade --upgrade-strategy=eager modm & wait
- run:
name: Compile HAL for all SAMD
command: |
(cd test/all && python3 run_all.py samd)
- store_artifacts:
path: test/all/log
destination: log

stm32f0-compile-all:
docker:
- image: modm/modm-build:latest
Expand Down Expand Up @@ -441,6 +458,12 @@ workflows:
filters:
branches:
ignore: /^develop.*/
- samd-compile-all:
requires:
- unittests-linux-generic
filters:
branches:
ignore: /^develop.*/
- stm32f0-compile-all:
requires:
- unittests-linux-generic
Expand Down Expand Up @@ -518,6 +541,7 @@ workflows:
ignore: /^develop.*/
requires:
- avr-compile-all
- samd-compile-all
- stm32f0-compile-all
- stm32f1-compile-all
- stm32f2-compile-all
Expand Down
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions test/all/ignored.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,8 @@ stm32l151qch6
stm32l151zct6
stm32l152qch6
stm32l152zct6
# FIXME: Missing cmsis-header for these ones
samd21e15c-uf
samd21e15c-uu
samd21e16c-uf
samd21e16c-uu
6 changes: 3 additions & 3 deletions test/all/run_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ def run(self):
if self.device.startswith("at"):
lbuild_command = ["-c", "avr.xml"]
shutil.copyfile("avr.cpp", os.path.join(tempdir, "main.cpp"))
elif self.device.startswith("stm32"):
lbuild_command = ["-c", "stm32.xml", "-D:::main_stack_size=512"]
shutil.copyfile("stm32.cpp", os.path.join(tempdir, "main.cpp"))
else:
lbuild_command = ["-c", "cortex-m.xml", "-D:::main_stack_size=512"]
shutil.copyfile("cortex-m.cpp", os.path.join(tempdir, "main.cpp"))

if self.cache_dir:
lbuild_command.append("-D:::cache_dir={}".format(self.cache_dir))
Expand Down

0 comments on commit 6c4a8d6

Please sign in to comment.