Commit Graph

24 Commits

Author SHA1 Message Date
Gregor Hartmann c4baa9f3b9
Create NodeMCU test system based on gambiarra (#2984)
* Create mispec_file.lua

* Initial commit of gambiarra

* Adapt gambiarra to NodeMCU

* adapt to NodeMCU spacing and add nok functionality

* Some refactoring to make it easier to add new functionality

* Add methode `fail` to check failing code and pass error messages to output

- fail can be called with a function that should fail and a string which should be contained in the errormessage.
- Pass failed check reasons to output.

* Create gambiarra_file.lua

* Add reporting of tests that failed with Lua error

* ok, nok and fail will terminate the running test

* Add capability to run sync and async tests in mixed order and have a task.post inbetween them

* fix gambiarra self test to also run on device (not only host)

Use less ram in checking tests directly after they ran.
Use nateie task.post to tame watchdog.

* Update file tests + add async tmr tests

* Another fix in executing async test

* Catch errors in callbacks using node.setonerror

* change interface to return an object with several test methods

* Update README.md

* Change interface of Gambiarra + add reason for failed eq

* Update gambiarra documentation

* Add coroutine testcases to gambiarra

* Delete mispec_file.lua as it is superseeded by gambiarra_file.lua

* improve regexp for stack frame extraction

* Use Lua 53 debug capabilities

* move actual tests upfront

* remove debug code + optimization

* Show errors immediately instead of at the end of the test, freeing memory earlier

* Split tests to be run in 2 tranches

* rename to NTest and move to new location

* Add tests to checking mechanisms

* Add luacheck to tests

* Some pushing around of files

* more (last) fixes and file juggling

* Minor tweaks and forgotten checkin

* Add NTest selftest to travis

* Trying how to master travis

* another try

* restrict NTest selftest to linux
2020-11-08 14:31:11 +00:00
galjonsfigur 6926c66b16 Polish Lua examples (#2846)
* Add missing globals from luacheck config

* Fix luacheck warnings in all lua files

* Re-enable luacheck in Travis

* Speed up Travis by using preinstalled LuaRocks

* Fix more luacheck warnings in httpserver lua module

* Fix DCC module and add appropriate definitions to luacheck config.

* Change inline comments from ignoring block to only ignore specific line

* Add Luacheck for Windows and enable it for both Windows and Linux

* Change luacheck exceptions and fix errors from 1st round of polishing

* Add retry and timeout params to wget
2020-06-09 22:26:52 +02:00
Gregor Hartmann 537c6f9909 Re-enabling test-compiling all Lua files during CI (#2877) 2019-08-06 12:36:50 +02:00
Terry Ellison c7ff86ff27
remove luacheck run for Travs and minor tweaks following #2838 (#2845) 2019-07-23 20:29:44 +03:00
galjonsfigur 7de8a01705 Add luacheck config and configuration for Travis CI (#2790)
* Move luacheck conf and fix Travis for all possible filenames
* Add lua script to help with luacheck config
* Add xargs approach for current luac.cross file checking
* Enable luacheck but do not break build
2019-06-28 06:53:19 +02:00
Gregor Hartmann 9842a8ef83 Add building luac.cross to travis ci builds (#2682)
Add building luac.cross to travis ci builds
2019-04-09 14:37:47 +01:00
Ryan Hartlage 8bb41fe93f Download pre-built toolchains (#2545)
* Download pre-built toolchains

* Updated to include the platform in the name of the pre-built toolchain

* Download archive into cache/

* Update Travis configuration to use pre-built toolchain via make
2018-12-03 13:24:19 +11:00
Marcel Stör 95728196c7 Remove sudo:false
Fixes #2568
2018-11-26 21:26:39 +01:00
TerryE 4141e69003 Move luac.cross build into standard make hierarchy 2018-03-17 00:43:52 +00:00
Yury Popov a3145da52b Minify ESP8266 toolchain archive for CI (#1743)
* Minify ESP8266 toolchain archive for CI
* Disable iROM size fix for CI builds
Fixes #884
2017-01-21 21:53:08 +03:00
Jonathan Karras 063cb6e7f2 Add lua.cross to CI tests. (#1649) 2016-12-06 07:28:43 +01:00
Marcel Stör 498cc52ab3 Remove deploy section (#1300) 2016-05-21 17:45:33 +02:00
Johny Mattsson cf2aa574b8 Bin-patching of SDK 1.5.0 with fix for timer interval. 2016-01-10 17:57:24 +11:00
Marcel Stör f9ff515de9 Integrate an extra build step for PRs to build a special firmware
Fixes #756
2015-11-16 13:22:10 +01:00
Marcel Stör df3178d763 Switch to Travis containerized builds 2015-10-12 13:26:05 +11:00
Johny Mattsson 21c4e11020 Enable dynamic build dates, plus print SDK version. 2015-10-12 13:26:05 +11:00
Marcel Stör 0ea12bdd3a Keep SDK internally rather than fetching the one from GeorgHahn, fixes #497 2015-06-24 21:47:34 +02:00
funshine d28a2c9eda add interger version release, fix #234, #252, #246 2015-03-11 13:21:19 +08:00
funshine 113db6f43e fix travis.yml 2015-03-11 11:10:43 +08:00
funshine f9afd20238 modify travis file to support build integer 2015-03-11 11:02:07 +08:00
funshine 81ea8d9597 add math, add file.fsinfo(), update spiffs. 2015-03-10 01:12:36 +08:00
funshine 6986d9e5aa update travis.yml 2015-03-05 11:36:37 +08:00
George Hahn 86a408d3e0 Fix toolchain URL 2015-03-04 21:19:54 -05:00
George Hahn fbf42d5472 Add basic .travis.yml 2015-03-04 21:15:27 -05:00