ci-build-linux.sh 752 B

1234567891011121314151617181920212223
  1. #!/bin/sh
  2. set -e
  3. echo "Running ci build for linux"
  4. (
  5. cd "$TRAVIS_BUILD_DIR" || exit
  6. export BUILD_DATE=$(date +%Y%m%d)
  7. # build integer firmware
  8. make EXTRA_CCFLAGS="-DLUA_NUMBER_INTEGRAL -DBUILD_DATE='\"'$BUILD_DATE'\"'"
  9. cd bin/ || exit
  10. file_name_integer="nodemcu_integer_${TRAVIS_TAG}.bin"
  11. srec_cat -output ${file_name_integer} -binary 0x00000.bin -binary -fill 0xff 0x00000 0x10000 0x10000.bin -binary -offset 0x10000
  12. cd ../ || exit
  13. # build float firmware
  14. make clean
  15. make EXTRA_CCFLAGS="-DBUILD_DATE='\"'$BUILD_DATE'\"'" all
  16. cd bin/ || exit
  17. file_name_float="nodemcu_float_${TRAVIS_TAG}.bin"
  18. srec_cat -output ${file_name_float} -binary 0x00000.bin -binary -fill 0xff 0x00000 0x10000 0x10000.bin -binary -offset 0x10000
  19. )