2019-04-09 15:37:47 +02:00
|
|
|
#os:
|
|
|
|
# - windows
|
|
|
|
# - linux
|
|
|
|
|
2015-03-05 03:15:27 +01:00
|
|
|
language: cpp
|
2019-04-09 15:37:47 +02:00
|
|
|
|
|
|
|
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
|
2015-07-21 20:46:09 +02:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- python-serial
|
|
|
|
- srecord
|
2016-01-10 07:57:24 +01:00
|
|
|
cache:
|
2016-12-06 07:28:43 +01:00
|
|
|
- directories:
|
2016-01-10 07:57:24 +01:00
|
|
|
- cache
|
2015-03-05 03:15:27 +01:00
|
|
|
script:
|
2019-04-09 15:37:47 +02:00
|
|
|
- echo OS is $OS $TRAVIS_OS_NAME
|
2015-11-15 20:11:24 +01:00
|
|
|
# http://docs.travis-ci.com/user/environment-variables/#Convenience-Variables
|
2019-04-09 15:37:47 +02:00
|
|
|
- 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"
|
2019-06-28 06:53:19 +02:00
|
|
|
- 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.sh || true ; fi
|
|
|
|
|