Skip to content

Commit

Permalink
Make travis checks faster. (#957)
Browse files Browse the repository at this point in the history
* Attempt to shard the longest travis task into two.
* Try to make all platformio.ini files similar to speed up travis builds.
* Add names to the sub-jobs in Travis.
  • Loading branch information
crankyoldgit committed Oct 10, 2019
1 parent 1ce36a8 commit c61127e
Show file tree
Hide file tree
Showing 27 changed files with 40 additions and 30 deletions.
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

0 comments on commit c61127e

Please sign in to comment.