Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make travis checks faster. #957

Merged
merged 5 commits into from
Oct 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 14 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,20 @@ notifications:
on_failure: change
jobs:
include:
- script:
# Check that everything compiles.
- find . -name platformio.ini -type f | sed 's,/platformio.ini$,,' | xargs -n 1 pio run --project-dir
- script:
- name: "Compile the trivial examples"
script:
# Check that everything compiles but some heavy tasks e.g. IRMQTTServer & IRrecvDumpV2
# i.e. We are splitting the work load in to parallel tasks.
- find . -regextype egrep -name platformio.ini -type f \! -regex ".*IR(MQTTServer|recvDumpV2).*" | sed 's,/platformio.ini$,,' | xargs -n 1 pio run --project-dir
- name: "Compile the complex examples"
script:
# Check that everything else compiles.
# i.e. We are splitting the work load in to parallel tasks.
- find . -regextype egrep -name platformio.ini -type f -regex ".*IR(MQTTServer|recvDumpV2).*" | sed 's,/platformio.ini$,,' | xargs -n 1 pio run --project-dir
- name: "Unit tests & Linter checks"
script:
# Run all the Tests & check the code linters have no issues.
# i.e. We are splitting the work load in to parallel tasks.
# Check the version numbers match.
- LIB_VERSION=$(egrep "^#define\s+_IRREMOTEESP8266_VERSION_\s+" src/IRremoteESP8266.h | cut -d\" -f2)
- test ${LIB_VERSION} == "$(jq -r .version library.json)"
Expand Down
2 changes: 1 addition & 1 deletion examples/CommonAcControl/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lib_extra_dirs = ../../
lib_ldf_mode = deep+
lib_ignore = examples
framework = arduino
build_flags =
build_flags = ; -D_IR_LOCALE_=en-AU

[env:nodemcuv2]
platform = espressif8266
Expand Down
2 changes: 1 addition & 1 deletion examples/ControlSamsungAC/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lib_extra_dirs = ../../
lib_ldf_mode = deep+
lib_ignore = examples
framework = arduino
build_flags = -D_IR_LOCALE_=en-AU
build_flags = ; -D_IR_LOCALE_=en-AU

[env:nodemcuv2]
platform = espressif8266
Expand Down
2 changes: 1 addition & 1 deletion examples/DumbIRRepeater/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lib_extra_dirs = ../../
lib_ldf_mode = deep+
lib_ignore = examples
framework = arduino
build_flags =
build_flags = ; -D_IR_LOCALE_=en-AU

[env:nodemcuv2]
platform = espressif8266
Expand Down
2 changes: 1 addition & 1 deletion examples/IRGCSendDemo/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lib_extra_dirs = ../../
lib_ldf_mode = deep+
lib_ignore = examples
framework = arduino
build_flags =
build_flags = ; -D_IR_LOCALE_=en-AU

[env:nodemcuv2]
platform = espressif8266
Expand Down
2 changes: 1 addition & 1 deletion examples/IRGCTCPServer/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lib_extra_dirs = ../../
lib_ldf_mode = deep+
lib_ignore = examples
framework = arduino
build_flags =
build_flags = ; -D_IR_LOCALE_=en-AU

[env:nodemcuv2]
platform = espressif8266
Expand Down
2 changes: 1 addition & 1 deletion examples/IRMQTTServer/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ src_dir = .
lib_extra_dirs = ../../
lib_ldf_mode = deep+
lib_ignore = examples
build_flags = -DMQTT_MAX_PACKET_SIZE=768 -D_IR_LOCALE_=en-AU
build_flags = -DMQTT_MAX_PACKET_SIZE=768 ; -D_IR_LOCALE_=en-AU
framework = arduino
platform = espressif8266

Expand Down
2 changes: 1 addition & 1 deletion examples/IRServer/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lib_extra_dirs = ../../
lib_ldf_mode = deep+
lib_ignore = examples
framework = arduino
build_flags =
build_flags = ; -D_IR_LOCALE_=en-AU

[env:nodemcuv2]
platform = espressif8266
Expand Down
2 changes: 1 addition & 1 deletion examples/IRrecvDemo/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lib_extra_dirs = ../../
lib_ldf_mode = deep+
lib_ignore = examples
framework = arduino
build_flags =
build_flags = ; -D_IR_LOCALE_=en-AU

[env:nodemcuv2]
platform = espressif8266
Expand Down
2 changes: 1 addition & 1 deletion examples/IRrecvDump/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lib_extra_dirs = ../../
lib_ldf_mode = deep+
lib_ignore = examples
framework = arduino
build_flags =
build_flags = ; -D_IR_LOCALE_=en-AU

[env:nodemcuv2]
platform = espressif8266
Expand Down
2 changes: 1 addition & 1 deletion examples/IRrecvDumpV2/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ framework = arduino
lib_extra_dirs = ../../
lib_ldf_mode = deep+
lib_ignore = examples
build_flags =
build_flags = ; -D_IR_LOCALE_=en-AU

[env:nodemcuv2]
board = nodemcuv2
Expand Down
2 changes: 1 addition & 1 deletion examples/IRsendDemo/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lib_extra_dirs = ../../
lib_ldf_mode = deep+
lib_ignore = examples
framework = arduino
build_flags =
build_flags = ; -D_IR_LOCALE_=en-AU

[env:nodemcuv2]
platform = espressif8266
Expand Down
2 changes: 1 addition & 1 deletion examples/IRsendProntoDemo/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lib_extra_dirs = ../../
lib_ldf_mode = deep+
lib_ignore = examples
framework = arduino
build_flags =
build_flags = ; -D_IR_LOCALE_=en-AU

[env:nodemcuv2]
platform = espressif8266
Expand Down
2 changes: 1 addition & 1 deletion examples/JVCPanasonicSendDemo/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lib_extra_dirs = ../../
lib_ldf_mode = deep+
lib_ignore = examples
framework = arduino
build_flags =
build_flags = ; -D_IR_LOCALE_=en-AU

[env:nodemcuv2]
platform = espressif8266
Expand Down
2 changes: 1 addition & 1 deletion examples/LGACSend/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lib_extra_dirs = ../../
lib_ldf_mode = deep+
lib_ignore = examples
framework = arduino
build_flags =
build_flags = ; -D_IR_LOCALE_=en-AU

[env:nodemcuv2]
platform = espressif8266
Expand Down
2 changes: 1 addition & 1 deletion examples/SmartIRRepeater/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lib_extra_dirs = ../../
lib_ldf_mode = deep+
lib_ignore = examples
framework = arduino
build_flags =
build_flags = ; -D_IR_LOCALE_=en-AU

[env:nodemcuv2]
platform = espressif8266
Expand Down
2 changes: 1 addition & 1 deletion examples/TurnOnArgoAC/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lib_extra_dirs = ../../
lib_ldf_mode = deep+
lib_ignore = examples
framework = arduino
build_flags =
build_flags = ; -D_IR_LOCALE_=en-AU

[env:nodemcuv2]
platform = espressif8266
Expand Down
2 changes: 1 addition & 1 deletion examples/TurnOnDaikinAC/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lib_extra_dirs = ../../
lib_ldf_mode = deep+
lib_ignore = examples
framework = arduino
build_flags =
build_flags = ; -D_IR_LOCALE_=en-AU

[env:nodemcuv2]
platform = espressif8266
Expand Down
2 changes: 1 addition & 1 deletion examples/TurnOnFujitsuAC/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lib_extra_dirs = ../../
lib_ldf_mode = deep+
lib_ignore = examples
framework = arduino
build_flags = -D_IR_LOCALE_=en-AU
build_flags = ; -D_IR_LOCALE_=en-AU

[env:nodemcuv2]
platform = espressif8266
Expand Down
2 changes: 1 addition & 1 deletion examples/TurnOnKelvinatorAC/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lib_extra_dirs = ../../
lib_ldf_mode = deep+
lib_ignore = examples
framework = arduino
build_flags = -D_IR_LOCALE_=en-AU
build_flags = ; -D_IR_LOCALE_=en-AU

[env:nodemcuv2]
platform = espressif8266
Expand Down
2 changes: 1 addition & 1 deletion examples/TurnOnMitsubishiAC/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lib_extra_dirs = ../../
lib_ldf_mode = deep+
lib_ignore = examples
framework = arduino
build_flags = -D_IR_LOCALE_=en-AU
build_flags = ; -D_IR_LOCALE_=en-AU

[env:nodemcuv2]
platform = espressif8266
Expand Down
2 changes: 1 addition & 1 deletion examples/TurnOnMitsubishiHeavyAc/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lib_extra_dirs = ../../
lib_ldf_mode = deep+
lib_ignore = examples
framework = arduino
build_flags = -D_IR_LOCALE_=en-AU
build_flags = ; -D_IR_LOCALE_=en-AU

[env:nodemcuv2]
platform = espressif8266
Expand Down
2 changes: 1 addition & 1 deletion examples/TurnOnPanasonicAC/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lib_extra_dirs = ../../
lib_ldf_mode = deep+
lib_ignore = examples
framework = arduino
build_flags = -D_IR_LOCALE_=en-AU
build_flags = ; -D_IR_LOCALE_=en-AU

[env:nodemcuv2]
platform = espressif8266
Expand Down
2 changes: 1 addition & 1 deletion examples/TurnOnToshibaAC/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lib_extra_dirs = ../../
lib_ldf_mode = deep+
lib_ignore = examples
framework = arduino
build_flags = -D_IR_LOCALE_=en-AU
build_flags = ; -D_IR_LOCALE_=en-AU

[env:nodemcuv2]
platform = espressif8266
Expand Down
2 changes: 1 addition & 1 deletion examples/TurnOnTrotecAC/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lib_extra_dirs = ../../
lib_ldf_mode = deep+
lib_ignore = examples
framework = arduino
build_flags =
build_flags = ; -D_IR_LOCALE_=en-AU

[env:nodemcuv2]
platform = espressif8266
Expand Down
2 changes: 1 addition & 1 deletion examples/Web-AC-control/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lib_extra_dirs = ../../
lib_ldf_mode = deep+
lib_ignore = examples
framework = arduino
build_flags =
build_flags = ; -D_IR_LOCALE_=en-AU

[common]
lib_deps_builtin =
Expand Down
2 changes: 1 addition & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ lib_ldf_mode = deep+
lib_ignore = examples
framework = arduino
platform = espressif8266
build_flags = -D_IR_LOCALE_=en-AU
build_flags = ; -D_IR_LOCALE_=en-AU

[env:nodemcuv2]
board = nodemcuv2
Expand Down