diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..9807cbb --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,41 @@ +--- +# 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 Ruby Testing Tools + - name: Setup Ruby Testing Tools + run: | + gem install rspec + gem install rubocop -v 0.57.2 + + # Run Tests + - name: Run All Unit Tests + run: | + cd test && rake ci + + # Slack notification + - uses: 8398a7/action-slack@v3 + with: + icon_emoji: ':octocat:' + status: ${{ job.status }} + # Github Actions limit visibility into renamed jobs; explicit job names here solve this limitation + job_name: "Unit Tests" + fields: repo,author,eventName,workflow,job + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_CHANNEL_WEBHOOK }} + if: always() # Pick up events even if the job fails or is canceled. diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d3b9a18..0000000 --- a/.travis.yml +++ /dev/null @@ -1,26 +0,0 @@ -sudo: required -language: ruby c - -matrix: - include: - #- os: osx - # compiler: clang - # osx_image: xcode7.3 - - os: linux - dist: trusty - rvm: "2.4" - compiler: gcc - - os: linux - dist: xenial - rvm: "2.7" - compiler: clang - -before_install: - - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install --assume-yes --quiet gcc-multilib; fi - -install: - - gem install rspec - - gem install rubocop -v 0.57.2 - -script: - - cd test && rake ci diff --git a/LICENSE.txt b/LICENSE.txt index d66fba5..b9a329d 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2007-14 Mike Karlesky, Mark VanderVoord, Greg Williams +Copyright (c) 2007-21 Mike Karlesky, Mark VanderVoord, Greg Williams Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index e6e7ea2..cab2de3 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,17 @@ -Unity Test API -============== +Unity Test ![CI](https://github.com/ThrowTheSwitch/Unity/workflows/CI/badge.svg) +========== +__Copyright (c) 2007 - 2021 Unity Project by Mike Karlesky, Mark VanderVoord, and Greg Williams__ -[![Unity Build Status](https://api.travis-ci.org/ThrowTheSwitch/Unity.png?branch=master)](https://travis-ci.org/ThrowTheSwitch/Unity) -__Copyright (c) 2007 - 2020 Unity Project by Mike Karlesky, Mark VanderVoord, and Greg Williams__ +Welcome to the Unity Test Project, one of the main projects of ThrowTheSwitch.org. Unity Test is a +unit testing framework built for C, with a focus on working with embedded toolchains. + +This project is made to test code targetting microcontrollers big and small. The core project is a +single C file and a pair of headers, allowing it to the added to your existing build setup without +too much headache. You may use any compiler you wish, and may use most existing build systems +including make, cmake, etc. If you'd like to leave the hard work to us, you might be interested +in Ceedling, a build tool also by ThrowTheSwitch.org. + +If you're new to Unity, we encourage you to tour the [getting started guide](docs/UnityGettingStartedGuide.md) Getting Started =============== diff --git a/src/unity.c b/src/unity.c index fef1d57..0426d03 100644 --- a/src/unity.c +++ b/src/unity.c @@ -1,6 +1,6 @@ /* ========================================================================= Unity Project - A Test Framework for C - Copyright (c) 2007-19 Mike Karlesky, Mark VanderVoord, Greg Williams + Copyright (c) 2007-21 Mike Karlesky, Mark VanderVoord, Greg Williams [Released under MIT License. Please refer to license.txt for details] ============================================================================ */ diff --git a/src/unity.h b/src/unity.h index 7d8c711..08c6a4e 100644 --- a/src/unity.h +++ b/src/unity.h @@ -1,6 +1,6 @@ /* ========================================== Unity Project - A Test Framework for C - Copyright (c) 2007-19 Mike Karlesky, Mark VanderVoord, Greg Williams + Copyright (c) 2007-21 Mike Karlesky, Mark VanderVoord, Greg Williams [Released under MIT License. Please refer to license.txt for details] ========================================== */ diff --git a/src/unity_internals.h b/src/unity_internals.h index ffb69a9..79c305e 100644 --- a/src/unity_internals.h +++ b/src/unity_internals.h @@ -1,6 +1,6 @@ /* ========================================== Unity Project - A Test Framework for C - Copyright (c) 2007-19 Mike Karlesky, Mark VanderVoord, Greg Williams + Copyright (c) 2007-21 Mike Karlesky, Mark VanderVoord, Greg Williams [Released under MIT License. Please refer to license.txt for details] ========================================== */