Skip to content

Commit

Permalink
🔥 Removed broken and dated blinky example
Browse files Browse the repository at this point in the history
✅ Added basic tests for `mixin` variations and `unity_helper_path`
  • Loading branch information
mvandervoord committed Apr 30, 2024
1 parent 1262199 commit 8785ed4
Show file tree
Hide file tree
Showing 28 changed files with 108 additions and 2,410 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,6 @@ jobs:
run: |
bundle exec rake ci
# Run Blinky
# Disabled because it's set up for avr-gcc
#- name: Run Tests On Blinky Project
# run: |
# cd examples/blinky
# ceedling module:create[someNewModule] module:destroy[someNewModule] test:all
# cd ../..

# Build & Install Gem
- name: build and install Gem
run: |
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ out.fail
tags
*.taghl

examples/blinky/build/
examples/blinky/vendor/
examples/temp_sensor/vendor/
examples/temp_sensor/build/
plugins/fff/examples/fff_example/build/
Expand Down
5 changes: 5 additions & 0 deletions assets/project_as_gem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
# enable release build (more details in release_build section below)
:release_build: FALSE

# Specify where to find mixins and any that should be enabled automatically
:mixins:
:enabled: []
:load_paths: []

# further details to configure the way Ceedling handles test code
:test_build:
:use_assembly: FALSE
Expand Down
5 changes: 5 additions & 0 deletions assets/project_with_guts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
# enable release build (more details in release_build section below)
:release_build: FALSE

# Specify where to find mixins and any that should be enabled automatically
:mixins:
:enabled: []
:load_paths: []

# further details to configure the way Ceedling handles test code
:test_build:
:use_assembly: FALSE
Expand Down
5 changes: 5 additions & 0 deletions assets/project_with_guts_gcov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
# enable release build (more details in release_build section below)
:release_build: FALSE

# Specify where to find mixins and any that should be enabled automatically
:mixins:
:enabled: []
:load_paths: []

# further details to configure the way Ceedling handles test code
:test_build:
:use_assembly: FALSE
Expand Down
4 changes: 4 additions & 0 deletions bin/cli_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -323,14 +323,18 @@ def create_example(env, app_cfg, options, name, dest)

dest_src = File.join( dest, 'src' )
dest_test = File.join( dest, 'test' )
dest_mixin = File.join( dest, 'mixin' )
dest_project = File.join( dest, DEFAULT_PROJECT_FILENAME )
dest_readme = File.join( dest, 'README.md' )

# Thor Actions for project tasks use paths in relation to this path
ActionsWrapper.source_root( app_cfg[:ceedling_root_path] )

@actions._directory( "examples/#{name}/src", dest_src, :force => true )
@actions._directory( "examples/#{name}/test", dest_test, :force => true )
@actions._directory( "examples/#{name}/mixin", dest_mixin, :force => true )
@actions._copy_file( "examples/#{name}/#{DEFAULT_PROJECT_FILENAME}", dest_project, :force => true )
@actions._copy_file( "examples/#{name}/README.md", dest_readme, :force => true )

# Vendor the tools and install command line helper scripts
@helper.vendor_tools( app_cfg[:ceedling_root_path], dest ) if options[:local]
Expand Down
108 changes: 0 additions & 108 deletions examples/blinky/project.yml

This file was deleted.

37 changes: 0 additions & 37 deletions examples/blinky/rakefile.rb

This file was deleted.

28 changes: 0 additions & 28 deletions examples/blinky/src/BlinkTask.c

This file was deleted.

13 changes: 0 additions & 13 deletions examples/blinky/src/BlinkTask.h

This file was deleted.

43 changes: 0 additions & 43 deletions examples/blinky/src/Configure.c

This file was deleted.

13 changes: 0 additions & 13 deletions examples/blinky/src/Configure.h

This file was deleted.

58 changes: 0 additions & 58 deletions examples/blinky/src/main.c

This file was deleted.

Loading

0 comments on commit 8785ed4

Please sign in to comment.