nodemcu-firmware/.travis.yml

36 lines
1.2 KiB
YAML
Raw Permalink Normal View History

2015-07-21 20:46:09 +02:00
sudo: false
2015-03-05 03:15:27 +01:00
language: cpp
2015-07-21 20:46:09 +02:00
addons:
apt:
packages:
- python-serial
- srecord
2016-12-06 07:28:43 +01:00
- lua5.1
cache:
2016-12-06 07:28:43 +01:00
- pip
- directories:
- cache
2016-12-06 07:28:43 +01:00
before_install:
- pip install --user hererocks
- hererocks env --lua 5.1 -rlatest
- source env/bin/activate
- luarocks install luafilesystem
2015-03-05 03:15:27 +01:00
install:
- tar -zxvf tools/esp-open-sdk.tar.gz
- export PATH=$PATH:$PWD/esp-open-sdk/xtensa-lx106-elf/bin
2015-03-05 03:15:27 +01:00
script:
2016-12-06 07:28:43 +01:00
- lua tools/cross-lua.lua || exit 1
- export BUILD_DATE=$(date +%Y%m%d)
- make EXTRA_CCFLAGS="-DBUILD_DATE='\"'$BUILD_DATE'\"'" all
2015-03-05 03:15:27 +01:00
- cd bin/
- file_name_float="nodemcu_float_${TRAVIS_TAG}.bin"
- srec_cat -output ${file_name_float} -binary 0x00000.bin -binary -fill 0xff 0x00000 0x10000 0x10000.bin -binary -offset 0x10000
- cd ../
- make clean
- make EXTRA_CCFLAGS="-DLUA_NUMBER_INTEGRAL -DBUILD_DATE='\"'$BUILD_DATE'\"'"
- cd bin/
- file_name_integer="nodemcu_integer_${TRAVIS_TAG}.bin"
- srec_cat -output ${file_name_integer} -binary 0x00000.bin -binary -fill 0xff 0x00000 0x10000 0x10000.bin -binary -offset 0x10000
# http://docs.travis-ci.com/user/environment-variables/#Convenience-Variables
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then bash "$TRAVIS_BUILD_DIR"/tools/pr-build.sh; fi