.travis.yml 1.2 KB

123456789101112131415161718192021222324
  1. sudo: required # due to manual install of make 4.1
  2. dist: trusty # due to the make 4.1 not installable on precise
  3. language: cpp
  4. # we need at least GNU Make 4.0, which isn't available in trusty, so grab it
  5. # manually from xenial
  6. before_install:
  7. - wget http://mirrors.kernel.org/ubuntu/pool/main/m/make-dfsg/make_4.1-6_amd64.deb
  8. - sudo dpkg -i make_4.1-6_amd64.deb
  9. addons:
  10. apt:
  11. packages:
  12. - python-serial
  13. - gperf
  14. # note that we clobber $PATH completely, to get rid of /opt/python* stuff so
  15. # we can use the system python and python-serial, rather than messing around
  16. # with pip all over the place
  17. install:
  18. - export PATH=$PWD/tools/toolchains/esp8266/bin:$PWD/tools/toolchains/esp32/bin:/bin:/usr/bin:/sbin:/usr/sbin
  19. script:
  20. - export BUILD_DATE=$(date +%Y%m%d)
  21. - env BUILD_DIR_BASE=`pwd`/build/float make MORE_CFLAGS="-DBUILD_DATE='\"'$BUILD_DATE'\"'" defconfig all
  22. - env BUILD_DIR_BASE=`pwd`/build/integer make MORE_CFLAGS="-DLUA_NUMBER_INTEGRAL -DBUILD_DATE='\"'$BUILD_DATE'\"'" defconfig all
  23. # http://docs.travis-ci.com/user/environment-variables/#Convenience-Variables
  24. #- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then bash "$TRAVIS_BUILD_DIR"/tools/pr-build.sh; fi