From 8af7d3f9cf16f30379bd41c34fa424bd7a8902e2 Mon Sep 17 00:00:00 2001 From: scls19fr Date: Thu, 24 Aug 2017 17:26:08 +0200 Subject: [PATCH 1/3] First build --- .travis.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..225b8f8 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,23 @@ +language: python +python: + - "2.7" + +# Cache PlatformIO packages using Travis CI container-based infrastructure +sudo: false +cache: + directories: + - "~/.platformio" + +env: + - PLATFORMIO_CI_SRC=examples/light_switch + - PLATFORMIO_CI_SRC=examples/multitasking + +install: + - pip install -U platformio + + # Libraries from PlatformIO Library Registry: + #- platformio lib -g install ... + +script: + #- platformio ci --board=uno --board=teensy31 --board=due --lib="." + - platformio ci --board=uno --lib="." From d39a6e64095700b372c8624d2457e4e8df846311 Mon Sep 17 00:00:00 2001 From: scls19fr Date: Thu, 24 Aug 2017 17:46:01 +0200 Subject: [PATCH 2/3] Update light_switch.ino --- examples/light_switch/light_switch.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/light_switch/light_switch.ino b/examples/light_switch/light_switch.ino index ac7d1c3..189c00a 100644 --- a/examples/light_switch/light_switch.ino +++ b/examples/light_switch/light_switch.ino @@ -3,7 +3,7 @@ // State machine variables #define FLIP_LIGHT_SWITCH 1 -State state_light_on(on_light_on_enter, &on_light_on_exit); +State state_light_on(on_light_on_enter, &on_light_on_exit) // break code to test if CI detect this State state_light_off(on_light_off_enter, &on_light_off_exit); Fsm fsm(&state_light_off); From c551c5eabe92e502cb35d88486f9b85a38824dda Mon Sep 17 00:00:00 2001 From: scls19fr Date: Thu, 24 Aug 2017 17:49:33 +0200 Subject: [PATCH 3/3] Update light_switch.ino Fix code that was willingly broken to test that CI can catch it. --- examples/light_switch/light_switch.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/light_switch/light_switch.ino b/examples/light_switch/light_switch.ino index 189c00a..ac7d1c3 100644 --- a/examples/light_switch/light_switch.ino +++ b/examples/light_switch/light_switch.ino @@ -3,7 +3,7 @@ // State machine variables #define FLIP_LIGHT_SWITCH 1 -State state_light_on(on_light_on_enter, &on_light_on_exit) // break code to test if CI detect this +State state_light_on(on_light_on_enter, &on_light_on_exit); State state_light_off(on_light_off_enter, &on_light_off_exit); Fsm fsm(&state_light_off);