Skip to content

Commit 4e900cf

Browse files
committed
Cut over to Github Actions only
1 parent be8b108 commit 4e900cf

File tree

7 files changed

+62
-108
lines changed

7 files changed

+62
-108
lines changed

.github/workflows/linux.yaml

+15-4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,21 @@ name: linux
55
on: [push, pull_request]
66

77
jobs:
8+
rspec:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: ruby/setup-ruby@v1
13+
with:
14+
ruby-version: 2.6
15+
16+
# Install and run Arduino CI tests for rspec
17+
- name: Build and Execute
18+
run: |
19+
g++ -v
20+
bundle install
21+
bundle exec rspec --backtrace
22+
823
rubocop:
924
runs-on: ubuntu-latest
1025
steps:
@@ -16,11 +31,9 @@ jobs:
1631
# Install and run Arduino CI tests for rubocop
1732
- name: Build and Execute
1833
run: |
19-
g++ -v
2034
bundle install
2135
bundle exec rubocop --version
2236
bundle exec rubocop -D .
23-
bundle exec rspec --backtrace
2437
2538
TestSomething:
2639
runs-on: ubuntu-latest
@@ -34,7 +47,6 @@ jobs:
3447
- name: Build and Execute
3548
run: |
3649
g++ -v
37-
bundle install
3850
cd SampleProjects/TestSomething
3951
bundle install
4052
bundle exec arduino_ci.rb
@@ -51,7 +63,6 @@ jobs:
5163
- name: Build and Execute
5264
run: |
5365
g++ -v
54-
bundle install
5566
cd SampleProjects/NetworkLib
5667
./scripts/install.sh
5768
bundle install

.github/workflows/macos.yaml

+1-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
with:
1414
ruby-version: 2.6
1515

16-
# Install and run Arduino CI tests for rubocop
16+
# Install and run Arduino CI tests for rspec
1717
- name: Build and Execute
1818
run: |
1919
g++ -v
@@ -47,7 +47,6 @@ jobs:
4747
- name: Build and Execute
4848
run: |
4949
g++ -v
50-
bundle install
5150
cd SampleProjects/TestSomething
5251
bundle install
5352
bundle exec arduino_ci.rb
@@ -64,7 +63,6 @@ jobs:
6463
- name: Build and Execute
6564
run: |
6665
g++ -v
67-
bundle install
6866
cd SampleProjects/NetworkLib
6967
sh ./scripts/install.sh
7068
bundle install

.github/workflows/windows.yaml

+15-4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,21 @@ name: windows
55
on: [push, pull_request]
66

77
jobs:
8+
rspec:
9+
runs-on: windows-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: ruby/setup-ruby@v1
13+
with:
14+
ruby-version: 2.6
15+
16+
# Install and run Arduino CI tests for rspec
17+
- name: Build and Execute
18+
run: |
19+
g++ -v
20+
bundle install
21+
bundle exec rspec --backtrace
22+
823
rubocop:
924
runs-on: windows-latest
1025
steps:
@@ -16,11 +31,9 @@ jobs:
1631
# Install and run Arduino CI tests for rubocop
1732
- name: Build and Execute
1833
run: |
19-
g++ -v
2034
bundle install
2135
bundle exec rubocop --version
2236
bundle exec rubocop -D .
23-
bundle exec rspec --backtrace
2437
2538
TestSomething:
2639
runs-on: windows-latest
@@ -34,7 +47,6 @@ jobs:
3447
- name: Build and Execute
3548
run: |
3649
g++ -v
37-
bundle install
3850
cd SampleProjects/TestSomething
3951
bundle install
4052
bundle exec arduino_ci.rb
@@ -51,7 +63,6 @@ jobs:
5163
- name: Build and Execute
5264
run: |
5365
g++ -v
54-
bundle install
5566
cd SampleProjects/NetworkLib
5667
bash -x ./scripts/install.sh
5768
bundle install

.travis.yml

-35
This file was deleted.

CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1212
- Code coverage tooling
1313
- Explicit check and warning for library directory names that do not match our guess of what the library should/would be called
1414
- Symlink tests for `Host`
15-
- GitHub action for MacOS
1615
- Add documentation on how to use Arduino CI with GitHub Actions
17-
- Allow tests to run on GitHub without external set up with GitHub Actions (for Windows and Ubuntu)
16+
- Allow tests to run on GitHub without external set up, via GitHub Actions (Windows, Linux, MacOS)
1817

1918
### Changed
2019
- Arduino backend is now `arduino-cli` version `0.13.0`
@@ -32,6 +31,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
3231
### Removed
3332
- `ARDUINO_CI_SKIP_SPLASH_SCREEN_RSPEC_TESTS` no longer affects any tests because there are no longer splash screens since switching to `arduino-cli`
3433
- `CIConfig.package_builtin?` as this is no longer relevant to the `arduino-cli` backend (which has no built-in packages)
34+
- Travis and Appveyor CI
3535

3636
### Fixed
3737
- Mismatches between library names in `library.properties` and the directory names, which can cause cryptic failures

README.md

+29-27
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@ You want to precisely replicate certain software states in your library, but you
1010

1111
You want your Arduino library to be automatically built and tested every time someone contributes code to your project on GitHub, but the Arduino IDE lacks the ability to run unit tests. [Arduino CI](https://github.com/Arduino-CI/arduino_ci) provides that ability.
1212

13-
`arduino_ci` is a cross-platform build/test system, consisting of a Ruby gem and a series of C++ mocks. It enables tests to be run both locally and as part of a CI service like Travis or Appveyor. Any OS that can run the Arduino IDE can run `arduino_ci`.
13+
`arduino_ci` is a cross-platform build/test system, consisting of a Ruby gem and a series of C++ mocks. It enables tests to be run both locally and as part of a CI service like GitHub Actions, TravisCI, Appveyor, etc. Any OS that can run the Arduino IDE can run `arduino_ci`.
1414

15-
  | Linux | macOS | Windows
16-
-------------------|:------|:------|:--------
17-
**AppVeyor** | | | [![Windows Build status](https://ci.appveyor.com/api/projects/status/abynv8xd75m26qo9/branch/master?svg=true)](https://ci.appveyor.com/project/ianfixes/arduino-ci)
18-
**GitHub Actions** | [![Arduino CI](https://github.com/Arduino-CI/arduino_ci/workflows/linux/badge.svg)](https://github.com/Arduino-CI/arduino_ci/actions?workflow=linux) | | [![Arduino CI](https://github.com/Arduino-CI/arduino_ci/workflows/windows/badge.svg)](https://github.com/Arduino-CI/arduino_ci/actions?workflow=windows)
19-
**Travis CI** | [![Linux Build Status](http://badges.herokuapp.com/travis/Arduino-CI/arduino_ci?env=BADGE=linux&label=build&branch=master)](https://travis-ci.org/Arduino-CI/arduino_ci) | [![OSX Build Status](http://badges.herokuapp.com/travis/Arduino-CI/arduino_ci?env=BADGE=osx&label=build&branch=master)](https://travis-ci.org/Arduino-CI/arduino_ci) |
15+
16+
Platform | CI Status
17+
---------|:---------
18+
OSX | [![OSX Build Status](https://github.com/Arduino-CI/arduino_ci/workflows/macos/badge.svg)](https://github.com/Arduino-CI/arduino_ci/actions?workflow=macos)
19+
Linux | [![Linux Build Status](https://github.com/Arduino-CI/arduino_ci/workflows/linux/badge.svg)](https://github.com/Arduino-CI/arduino_ci/actions?workflow=linux)
20+
Windows | [![Windows Build status](https://github.com/Arduino-CI/arduino_ci/workflows/windows/badge.svg)](https://github.com/Arduino-CI/arduino_ci/actions?workflow=windows)
2021

2122

2223
## Comparison to Other Arduino Testing Tools
@@ -130,6 +131,28 @@ The following prerequisites must be fulfilled:
130131
> **Note:** `arduino_ci.rb` expects to be run from the root directory of your Arduino project library.
131132
132133

134+
#### GitHub Actions
135+
136+
GitHub Actions allows you to automate your workflows directly in GitHub.
137+
No additional steps are needed.
138+
Just create a YAML file with the information below in your repo under the `.github/workflows/` directory.
139+
140+
```yaml
141+
on: [push, pull_request]
142+
jobs:
143+
runTest:
144+
runs-on: ubuntu-latest
145+
steps:
146+
- uses: actions/checkout@v2
147+
- uses: ruby/setup-ruby@v1
148+
with:
149+
ruby-version: 2.6
150+
- run: |
151+
bundle install
152+
bundle exec arduino_ci_remote.rb
153+
```
154+
155+
133156
#### Travis CI
134157
135158
You'll need to go to https://travis-ci.org/profile/ and enable testing for your Arduino project. Once that happens, you should be all set. The script will test all example projects of the library and all unit tests.
@@ -158,27 +181,6 @@ test_script:
158181
- bundle exec arduino_ci.rb
159182
```
160183

161-
#### GitHub Actions
162-
163-
GitHub Actions allows you to automate your workflows directly in GitHub.
164-
No additional steps are needed.
165-
Just create a YAML file with the information below in your repo under the `.github/workflows/` directory.
166-
167-
```yaml
168-
on: [push, pull_request]
169-
jobs:
170-
runTest:
171-
runs-on: ubuntu-latest
172-
steps:
173-
- uses: actions/checkout@v2
174-
- uses: ruby/setup-ruby@v1
175-
with:
176-
ruby-version: 2.6
177-
- run: |
178-
bundle install
179-
bundle exec arduino_ci_remote.rb
180-
```
181-
182184

183185
## Known Problems
184186

appveyor.yml

-33
This file was deleted.

0 commit comments

Comments
 (0)