Skip to content

Commit 7ae3bbc

Browse files
authored
Update version to v2.0.3 (#254)
- Version bump due to Issue #246 - Add library version as a #define in src/IRremoteESP8266.h - Add check to Travis config to ensure version numbers all match.
1 parent 74797a0 commit 7ae3bbc

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ install:
1717
- arduino --install-boards esp8266:esp8266
1818
- arduino --board $BD --save-prefs
1919
- arduino --pref "compiler.warning_level=all" --save-prefs
20+
- sudo apt-get install jq
2021
script:
2122
# Check that everything compiles.
2223
- arduino --verify --board $BD $PWD/examples/IRrecvDemo/IRrecvDemo.ino
@@ -35,6 +36,10 @@ script:
3536
- shopt -u nullglob
3637
# Build and run the unit tests.
3738
- (cd test; make run)
39+
# Check the version numbers match.
40+
- LIB_VERSION=$(egrep "^#define\s+_IRREMOTEESP8266_VERSION_\s+" src/IRremoteESP8266.h | cut -d\" -f2)
41+
- test ${LIB_VERSION} == "$(jq -r .version library.json)"
42+
- grep -q "^version=${LIB_VERSION}$" library.properties
3843

3944
notifications:
4045
email:

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "IRremoteESP8266",
3-
"version": "2.0.2",
3+
"version": "2.0.3",
44
"keywords": "infrared, ir, remote, esp8266",
55
"description": "Send and receive infrared signals with multiple protocols (ESP8266)",
66
"repository":

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=IRremoteESP8266
2-
version=2.0.2
2+
version=2.0.3
33
author=Sebastien Warin, Mark Szabo, Ken Shirriff, David Conran
44
maintainer=Mark Szabo, David Conran, Sebastien Warin, Roi Dayan, Massimiliano Pinto
55
sentence=Send and receive infrared signals with multiple protocols (ESP8266)

src/IRremoteESP8266.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
#include <iostream>
4444
#endif
4545

46+
// Library Version
47+
#define _IRREMOTEESP8266_VERSION_ "2.0.3"
4648
// Supported IR protocols
4749
// Each protocol you include costs memory and, during decode, costs time
4850
// Disable (set to false) all the protocols you do not need/want!

0 commit comments

Comments
 (0)