Skip to content

Commit 1802c7f

Browse files
committed
Prepare 0.1.2 release for arduino_ci v1.2.0
1 parent 2a3a077 commit 1802c7f

File tree

3 files changed

+33
-19
lines changed

3 files changed

+33
-19
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1111
- Instructions for testing locally with Docker
1212
- Adopt new `arduino_ci` version that enables `CUSTOM_INIT_SCRIPT` and `USE_SUBDIR` environment variables
1313
- Python dependencies for espXX board compilation (unfortunately assumed to be present in image, not installed by board manager)
14+
- Instructions for new environment variable `SKIP_LIBRARY_PROPERTIES`
1415

1516
### Changed
1617

Dockerfile

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ ARG BUILD_REVISION
66
ARG BUILD_VERSION
77

88
# Values we set in more than one place in this file
9-
ARG ARDUINO_CI_REPO="https://github.com/ArduinoCI/action"
9+
ARG ARDUINO_CI_ACTION_REPO="https://github.com/ArduinoCI/action"
1010
ARG ARDUINO_CI_MAINTAINER="Arduino Continuous Integration <[email protected]>"
11-
#ARG ARDUINO_CLI_GITREF="tag: 'v1.1.0'"
12-
ARG ARDUINO_CLI_GITREF="branch: '2020-12-28_wrapup'"
11+
ARG ARDUINO_CI_GITREPO="https://github.com/ArduinoCI/arduino_ci.git"
12+
ARG ARDUINO_CI_GITREF="tag: 'v1.2.0'"
13+
#ARG ARDUINO_CI_GITREPO="https://github.com/ianfixes/arduino_ci.git"
14+
#ARG ARDUINO_CI_GITREF="branch: '2020-12-28_wrapup'"
1315

1416
LABEL com.github.actions.name="Arduino CI" \
1517
com.github.actions.description="Unit testing and example compilation for Arduino libraries" \
@@ -20,13 +22,13 @@ LABEL com.github.actions.name="Arduino CI" \
2022
org.opencontainers.image.revision=$BUILD_REVISION \
2123
org.opencontainers.image.version=$BUILD_VERSION \
2224
org.opencontainers.image.authors=$ARDUINO_CI_MAINTAINER \
23-
org.opencontainers.image.url=$ARDUINO_CI_REPO \
25+
org.opencontainers.image.url=$ARDUINO_CI_ACTION_REPO \
2426
org.opencontainers.image.source=$ARDUINO_CI_REPO \
25-
org.opencontainers.image.documentation=$ARDUINO_CI_REPO \
27+
org.opencontainers.image.documentation=$ARDUINO_CI_ACTION_REPO \
2628
org.opencontainers.image.vendor="Arduino CI" \
2729
org.opencontainers.image.description="Unit testing and example compilation for Arduino libraries" \
28-
repository=$$ARDUINO_CI_REPO \
29-
homepage=$ARDUINO_CI_REPO
30+
repository=$$ARDUINO_CI_ACTION_REPO \
31+
homepage=$ARDUINO_CI_ACTION_REPO
3032

3133
# Values for debugging
3234
ENV BUILD_DATE=$BUILD_DATE \
@@ -56,7 +58,8 @@ RUN true \
5658
RUN true \
5759
&& mkdir -p /action/bundle \
5860
&& echo "source 'https://rubygems.org'" > $BUNDLE_GEMFILE \
59-
&& echo "gem 'arduino_ci', git: 'https://github.com/ianfixes/arduino_ci.git', $ARDUINO_CLI_GITREF" >> $BUNDLE_GEMFILE \
61+
# && echo "gem 'arduino_ci', git: '$ARDUINO_CI_GITREPO', $ARDUINO_CI_GITREF" >> $BUNDLE_GEMFILE \
62+
&& echo "gem 'arduino_ci', '=1.2.0'" >> $BUNDLE_GEMFILE \
6063
&& cat $BUNDLE_GEMFILE \
6164
&& bundle install --gemfile /action/Gemfile --path /action/bundle \
6265
&& find /action |grep arduino_ci.rb

README.md

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This repository is for the **GitHub Action** to run [`arduino_ci`](https://githu
77

88
- Contributions to your Arduino library are tested automatically, _without_ the need for hardware present
99
- Example sketches in your `examples/` directory are compiled automatically, to detect broken code in the default branch
10-
10+
- `library.properties` is scanned for correctness
1111

1212
## Adding Arduino CI Pull Request Tests To Your Project
1313

@@ -24,7 +24,7 @@ These contents for `.github/workflows/arduino_test_runner.yml` should work for m
2424

2525
```yml
2626
---
27-
name: Arduino CI
27+
name: Arduino_CI
2828

2929
on: [pull_request]
3030

@@ -34,7 +34,7 @@ jobs:
3434

3535
steps:
3636
- uses: actions/checkout@v2
37-
- uses: Arduino-CI/[email protected].0
37+
- uses: Arduino-CI/[email protected].2 # v0.1.2 or the latest version
3838
env:
3939
# Not all libraries include examples or unit tests. The default
4040
# behavior of arduino_ci is to assume that "if the files don't
@@ -47,10 +47,20 @@ jobs:
4747
# absence of either tests or examples, uncommenting either of
4848
# the following lines (as appropriate) will enforce that.
4949
#
50-
EXPECT_EXAMPLES: false
51-
EXPECT_UNITTESTS: false
50+
# EXPECT_EXAMPLES: false
51+
# EXPECT_UNITTESTS: false
52+
53+
# Scanning library.properties for issues is a relatively new
54+
# feature, and we may not have implemented it perfectly just
55+
# yet.
56+
#
57+
# If you find that it incorrectly fails your library, you can
58+
# skip it. (Please open an issue against arduino_ci as well
59+
# so that it can be fixed.)
60+
#
61+
# SKIP_LIBRARY_PROPERTIES: false
5262

53-
# Not all libraries are in the root direcotry of a repository.
63+
# Not all libraries are in the root directory of a repository.
5464
# Specifying the path of the library here (relative to the root
5565
# of the repository) will adjust that.
5666
#
@@ -76,13 +86,13 @@ jobs:
7686
You can show Arduino CI status with a badge in your repository `README.md`
7787

7888
```markdown
79-
[![Arduino CI](https://github.com/<OWNER>/<REPOSITORY>/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci)
89+
[![Arduino CI](https://github.com/<OWNER>/<REPOSITORY>/workflows/Arduino_CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci)
8090
```
8191

8292
> Note that
8393
> * you must replace `<OWNER>` with your GitHub username
8494
> * you must replace `<REPOSITORY>` with the name of the GitHub repository
85-
> * `Arduino%20CI` in the URL must match the `name: Arduino CI` line in the example YAML files above
95+
> * `Arduino_CI` in the URL must match the `name: Arduino_CI` line in the example YAML files above
8696
8797

8898
## Configuring Behavior of the Arduino CI Test Runner Itself
@@ -97,7 +107,7 @@ For information on Arduino unit testing with `arduino_ci`, see the [`REFERENCE.m
97107

98108
### Testing Different Arduino Platforms
99109

100-
By default, any unit tests and example sketches are tested against a modest set of Arduino platforms. This configuration can be overridden in several specific ways; for details, see the [`REFERENCE.md` for Arduino CI's section on CI configuration](https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md#indirectly-overriding-build-behavior-medium-term-use-and-advanced-options)
110+
By default, any unit tests and example sketches are tested against a modest set of Arduino platforms. If you have architectures defined in `library.properties`, that will further refine the set of what is tested. You can further override this configuration in several specific ways; for details, see the [`REFERENCE.md` for Arduino CI's section on CI configuration](https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md#indirectly-overriding-build-behavior-medium-term-use-and-advanced-options)
101111

102112
The default configuration is [available in the `arduino_ci` project](https://github.com/Arduino-CI/arduino_ci/blob/master/misc/default.yml), and shows how the platforms and packages are configured (including 3rd-party board provider information).
103113

@@ -115,7 +125,7 @@ Path |Contents
115125
`/pathTo/Arduino/libraries/mylib` | Your library under test, called `mylib`
116126
`/pathTo/Arduino/libraries/custom` | A custom library
117127

118-
In this situation, you've got a mix of libraries installed locally (the one that will be tested amongst any possible dependencies), and they all work as expected (even though you're not quite sure all of them are up to date, nor whether they have local modifications that aren't part of the official library release. This setup won't work in CI, but by volume-mounting the libraries directory into the container and using your own library as the working directory, you can ensure that arduino_ci is using the _exact_ same set of dependencies.
128+
In this situation, you've got a mix of libraries installed locally (the one that will be tested amongst any possible dependencies), and they all work as expected (even though you're not quite sure all of them are up to date, nor whether they have local modifications that aren't part of the official library release). This setup won't work in CI, but by volume-mounting the libraries directory into the container and using your own library as the working directory, you can ensure that arduino_ci is using the _exact_ same set of dependencies.
119129

120130
> This is also the fastest way to test new versions of dependencies.
121131
@@ -168,7 +178,7 @@ docker run --rm \
168178
```
169179

170180

171-
### Your Arduino Library is a subdirecotry of a monorepo, you need libraries or versions as dependencies that can't be installed by name from the Arduino library manager, you wrote a script to install them automatically
181+
### Your Arduino Library is a subdirectory of a monorepo, you need libraries or versions as dependencies that can't be installed by name from the Arduino library manager, you wrote a script to install them automatically
172182

173183
Path |Contents
174184
----------------------------------------------|--------

0 commit comments

Comments
 (0)