-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #555 from ThrowTheSwitch/test/switch_to_actions
Switch from travis to actions
- Loading branch information
Showing
13 changed files
with
97 additions
and
57 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,69 @@ | ||
--- | ||
# Continuous Integration Workflow: Test case suite run + validation build check | ||
name: CI | ||
|
||
# Controls when the action will run. | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
# Job: Unit test suite | ||
unit-tests: | ||
name: "Unit Tests" | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Install Binutils, Multilib, etc | ||
- name: Install C dev Tools | ||
run: | | ||
sudo apt-get update -qq | ||
sudo apt-get install --assume-yes --quiet gcc-multilib | ||
sudo apt-get install -qq gcc-avr binutils-avr avr-libc | ||
# Install GCovr | ||
- name: Install GCovr | ||
run: | | ||
sudo pip install gcovr | ||
# Checks out repository under $GITHUB_WORKSPACE | ||
- name: Checkout Latest Repo | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
# Install Ruby Testing Tools (Bundler version should match the one in Gemfile.lock) | ||
- name: Setup Ruby Testing Tools | ||
run: | | ||
sudo gem install rspec | ||
sudo gem install rubocop -v 0.57.2 | ||
sudo gem install bundler -v "$(grep -A 1 "BUNDLED WITH" Gemfile.lock | tail -n 1)" | ||
bundle install | ||
# Run Tests | ||
- name: Run All Self Tests | ||
run: | | ||
bundle exec rake ci | ||
# Build & Install Gem | ||
- name: Build and Install Gem | ||
run: | | ||
gem build ceedling.gemspec | ||
sudo gem install --local ceedling-*.gem | ||
# 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 ../.. | ||
|
||
# Run Temp Sensor | ||
- name: Run Tests On Temp Sensor Project | ||
run: | | ||
cd examples/temp_sensor | ||
ceedling module:create[someNewModule] module:destroy[someNewModule] test:all | ||
cd ../.. |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ Gem::Specification.new do |s| | |
s.version = Ceedling::Version::GEM | ||
s.platform = Gem::Platform::RUBY | ||
s.authors = ["Mark VanderVoord", "Michael Karlesky", "Greg Williams"] | ||
s.email = ["[email protected]", "[email protected]", "[email protected]"] | ||
s.email = ["[email protected]", "[email protected]", "[email protected]"] | ||
s.homepage = "http://throwtheswitch.org/ceedling" | ||
s.summary = "Ceedling is a build automation tool for C unit test suites that packages up Unity, CMock, and Rake-based build management functionality" | ||
s.description = <<-DESC | ||
|
@@ -30,10 +30,10 @@ Ceedling projects are created with a YAML configuration file. A variety of conve | |
|
||
s.required_ruby_version = ">= 2.4.0" | ||
|
||
s.add_dependency "thor", ">= 0.14.5" | ||
s.add_dependency "rake", ">= 12.2.1" | ||
s.add_dependency "deep_merge", ">= 1.2.1" | ||
s.add_runtime_dependency "constructor", ">= 1.0.4" | ||
s.add_dependency "thor", "~> 0.14" | ||
s.add_dependency "rake", "~> 12" | ||
s.add_dependency "deep_merge", "~> 1.2" | ||
s.add_dependency "constructor", "~> 2" | ||
|
||
# Files needed from submodules | ||
s.files = [] | ||
|
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -44,7 +44,7 @@ module Version | |
eval("#{name} = '#{a.join(".")}'") | ||
end | ||
|
||
GEM = "0.30.0" | ||
GEM = "0.31.0" | ||
CEEDLING = GEM | ||
end | ||
end |