2015-08-20 06:21:40 +00:00
|
|
|
language: c
|
|
|
|
sudo: false
|
|
|
|
env:
|
|
|
|
# Target commit for https://github.com/pfalcon/esp-open-sdk/
|
2017-06-07 08:07:01 +00:00
|
|
|
OPENSDK_COMMIT=b069537
|
2015-08-20 06:21:40 +00:00
|
|
|
CROSS_ROOT="${HOME}/toolchain-${OPENSDK_COMMIT}"
|
|
|
|
CROSS_BINDIR="${CROSS_ROOT}/bin"
|
2016-05-03 21:34:54 +00:00
|
|
|
CROSS="ccache xtensa-lx106-elf-"
|
|
|
|
MAKE_CMD="make WARNINGS_AS_ERRORS=1 -C examples/ build-examples"
|
2016-03-23 00:12:20 +00:00
|
|
|
PATH=${PATH}:${CROSS_BINDIR}
|
2015-08-20 06:21:40 +00:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- ${CROSS_ROOT}
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- make
|
|
|
|
- unrar
|
|
|
|
- autoconf
|
|
|
|
- automake
|
|
|
|
- libtool
|
|
|
|
- gcc
|
|
|
|
- g++
|
|
|
|
- gperf
|
|
|
|
- flex
|
|
|
|
- bison
|
|
|
|
- texinfo
|
|
|
|
- gawk
|
|
|
|
- libncurses5-dev
|
|
|
|
- libexpat1-dev
|
|
|
|
- python
|
2017-08-18 14:29:07 +00:00
|
|
|
- python-pip
|
2015-08-20 06:21:40 +00:00
|
|
|
- sed
|
|
|
|
- git
|
2017-06-07 08:07:01 +00:00
|
|
|
- help2man
|
2016-05-28 01:31:29 +00:00
|
|
|
- vim-common
|
2015-08-20 06:21:40 +00:00
|
|
|
|
|
|
|
before_install:
|
2017-08-18 14:29:07 +00:00
|
|
|
- pip install --user pyserial
|
2016-05-03 21:34:54 +00:00
|
|
|
- travis_wait 30 utils/travis_build/install_toolchain.sh
|
2015-08-20 06:21:40 +00:00
|
|
|
|
|
|
|
script:
|
|
|
|
- cd ${TRAVIS_BUILD_DIR}
|
|
|
|
# Remove ssid_config requirement for examples
|
2016-11-12 20:24:29 +00:00
|
|
|
- echo -e '#define WIFI_SSID "mywifissid"\n#define WIFI_PASS "my secret password"\n' > include/private_ssid_config.h
|
2016-05-03 21:34:54 +00:00
|
|
|
# Don't verbose-build all examples (too much output), only verbose-build errors
|
|
|
|
- ( ${MAKE_CMD} ) || ( ${MAKE_CMD} V=1 )
|
2016-05-28 01:31:29 +00:00
|
|
|
# build bootloader
|
|
|
|
- make -C bootloader/
|