mirror of
https://github.com/nodemcu/nodemcu-firmware.git
synced 2025-01-16 20:52:57 +08:00
6926c66b16
* 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
39 lines
1.3 KiB
YAML
39 lines
1.3 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 -iname "*.lua" -print0 | xargs -0 echo
|
|
- find lua_modules lua_examples -iname "*.lua" -print0 | xargs -0 $LUACC -p
|
|
- 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
|