Skip to content

Commit ffb51ec

Browse files
committed
Switch from Travis to Github Actions.
Update year in docs.
1 parent 0b078cd commit ffb51ec

7 files changed

Lines changed: 58 additions & 34 deletions

File tree

.github/workflows/main.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
# Continuous Integration Workflow: Test case suite run + validation build check
3+
name: CI
4+
5+
# Controls when the action will run.
6+
# Triggers the workflow on push or pull request events but only for the master branch
7+
on:
8+
push:
9+
branches: [ master ]
10+
pull_request:
11+
branches: [ master ]
12+
13+
jobs:
14+
# Job: Unit test suite
15+
unit-tests:
16+
name: "Unit Tests"
17+
runs-on: ubuntu-latest
18+
steps:
19+
# Install Ruby Testing Tools
20+
- name: Setup Ruby Testing Tools
21+
run: |
22+
gem install rspec
23+
gem install rubocop -v 0.57.2
24+
25+
# Run Tests
26+
- name: Run All Unit Tests
27+
run: |
28+
cd test && rake ci
29+
30+
# Slack notification
31+
- uses: 8398a7/action-slack@v3
32+
with:
33+
icon_emoji: ':octocat:'
34+
status: ${{ job.status }}
35+
# Github Actions limit visibility into renamed jobs; explicit job names here solve this limitation
36+
job_name: "Unit Tests"
37+
fields: repo,author,eventName,workflow,job
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_CHANNEL_WEBHOOK }}
41+
if: always() # Pick up events even if the job fails or is canceled.

.travis.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) <year> 2007-14 Mike Karlesky, Mark VanderVoord, Greg Williams
3+
Copyright (c) <year> 2007-21 Mike Karlesky, Mark VanderVoord, Greg Williams
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1-
Unity Test API
2-
==============
1+
Unity Test ![CI](https://github.com/ThrowTheSwitch/Unity/workflows/CI/badge.svg)
2+
==========
3+
__Copyright (c) 2007 - 2021 Unity Project by Mike Karlesky, Mark VanderVoord, and Greg Williams__
34

4-
[![Unity Build Status](https://api.travis-ci.org/ThrowTheSwitch/Unity.png?branch=master)](https://travis-ci.org/ThrowTheSwitch/Unity)
5-
__Copyright (c) 2007 - 2020 Unity Project by Mike Karlesky, Mark VanderVoord, and Greg Williams__
5+
Welcome to the Unity Test Project, one of the main projects of ThrowTheSwitch.org. Unity Test is a
6+
unit testing framework built for C, with a focus on working with embedded toolchains.
7+
8+
This project is made to test code targetting microcontrollers big and small. The core project is a
9+
single C file and a pair of headers, allowing it to the added to your existing build setup without
10+
too much headache. You may use any compiler you wish, and may use most existing build systems
11+
including make, cmake, etc. If you'd like to leave the hard work to us, you might be interested
12+
in Ceedling, a build tool also by ThrowTheSwitch.org.
13+
14+
If you're new to Unity, we encourage you to tour the [getting started guide](docs/UnityGettingStartedGuide.md)
615

716
Getting Started
817
===============

src/unity.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* =========================================================================
22
Unity Project - A Test Framework for C
3-
Copyright (c) 2007-19 Mike Karlesky, Mark VanderVoord, Greg Williams
3+
Copyright (c) 2007-21 Mike Karlesky, Mark VanderVoord, Greg Williams
44
[Released under MIT License. Please refer to license.txt for details]
55
============================================================================ */
66

src/unity.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* ==========================================
22
Unity Project - A Test Framework for C
3-
Copyright (c) 2007-19 Mike Karlesky, Mark VanderVoord, Greg Williams
3+
Copyright (c) 2007-21 Mike Karlesky, Mark VanderVoord, Greg Williams
44
[Released under MIT License. Please refer to license.txt for details]
55
========================================== */
66

src/unity_internals.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* ==========================================
22
Unity Project - A Test Framework for C
3-
Copyright (c) 2007-19 Mike Karlesky, Mark VanderVoord, Greg Williams
3+
Copyright (c) 2007-21 Mike Karlesky, Mark VanderVoord, Greg Williams
44
[Released under MIT License. Please refer to license.txt for details]
55
========================================== */
66

0 commit comments

Comments
 (0)