mirror of
https://github.com/nodemcu/nodemcu-firmware.git
synced 2025-01-16 20:52:57 +08:00
c4baa9f3b9
* 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
42 lines
1.4 KiB
YAML
42 lines
1.4 KiB
YAML
#os:
|
|
# - windows
|
|
# - linux
|
|
|
|
language: cpp
|
|
|
|
matrix:
|
|
include:
|
|
- os: linux
|
|
env:
|
|
- OS="$TRAVIS_OS_NAME"
|
|
- LUACC=./luac.cross
|
|
- os: windows
|
|
env:
|
|
- MSBUILD_PATH="c:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin"
|
|
- OS="$TRAVIS_OS_NAME"
|
|
- LUACC=msvc/luac-cross/x64/Debug/luac.cross.exe
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- python-serial
|
|
- srecord
|
|
- luarocks
|
|
cache:
|
|
- directories:
|
|
- cache
|
|
script:
|
|
- echo OS is $OS $TRAVIS_OS_NAME
|
|
# http://docs.travis-ci.com/user/environment-variables/#Convenience-Variables
|
|
- if [ "$OS" = "linux" ]; then bash "$TRAVIS_BUILD_DIR"/tools/travis/ci-build-linux.sh; fi
|
|
- if [ "$OS" = "windows" ]; then bash "$TRAVIS_BUILD_DIR"/tools/travis/ci-build-windows-ms.sh; fi
|
|
- if [ "$OS" = "linux" -a "$TRAVIS_PULL_REQUEST" != "false" ]; then bash "$TRAVIS_BUILD_DIR"/tools/travis/pr-build.sh; fi
|
|
- cd "$TRAVIS_BUILD_DIR"
|
|
- echo "checking:"
|
|
- find lua_modules lua_examples tests/NTest* -iname "*.lua" -print0 | xargs -0 echo
|
|
- find lua_modules lua_examples tests/NTest* -iname "*.lua" -print0 | xargs -0 $LUACC -p
|
|
- cd tests/NTest
|
|
- if [ "$OS" = "linux" ]; then ../../$LUACC -e ../NTest/NTest_NTest.lua; fi
|
|
- cd "$TRAVIS_BUILD_DIR"
|
|
- if [ "$OS" = "linux" ]; then bash "$TRAVIS_BUILD_DIR"/tools/travis/run-luacheck-linux.sh; fi
|
|
- if [ "$OS" = "windows" ]; then bash "$TRAVIS_BUILD_DIR"/tools/travis/run-luacheck-windows.sh; fi
|