2015-08-20 06:21:40 +00:00
|
|
|
language: c
|
|
|
|
sudo: false
|
|
|
|
env:
|
|
|
|
# Target commit for https://github.com/pfalcon/esp-open-sdk/
|
2016-05-14 23:21:41 +00:00
|
|
|
OPENSDK_COMMIT=a48b12f
|
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:
|
2016-11-13 08:29:47 +00:00
|
|
|
ssh_known_hosts: 195.138.84.66
|
2015-08-20 06:21:40 +00:00
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- make
|
|
|
|
- unrar
|
|
|
|
- autoconf
|
|
|
|
- automake
|
|
|
|
- libtool
|
|
|
|
- gcc
|
|
|
|
- g++
|
|
|
|
- gperf
|
|
|
|
- flex
|
|
|
|
- bison
|
|
|
|
- texinfo
|
|
|
|
- gawk
|
|
|
|
- libncurses5-dev
|
|
|
|
- libexpat1-dev
|
|
|
|
- python
|
|
|
|
- python-serial
|
|
|
|
- sed
|
|
|
|
- git
|
2016-05-28 01:31:29 +00:00
|
|
|
- vim-common
|
2015-08-20 06:21:40 +00:00
|
|
|
|
|
|
|
before_install:
|
2016-11-13 08:29:47 +00:00
|
|
|
- openssl aes-256-cbc -K $encrypted_709d8233e262_key -iv $encrypted_709d8233e262_iv
|
|
|
|
-in utils/travis_tests/sheinz_rsa.enc -out /tmp/sheinz_rsa -d
|
|
|
|
- eval "$(ssh-agent -s)"
|
|
|
|
- chmod 600 /tmp/sheinz_rsa
|
|
|
|
- ssh-add /tmp/sheinz_rsa
|
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/
|
2016-11-13 08:29:47 +00:00
|
|
|
# run tests
|
|
|
|
- ./utils/travis_tests/run_tests.sh
|