-
Notifications
You must be signed in to change notification settings - Fork 27
/
.travis.yml
66 lines (64 loc) · 1.62 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
language: c
sudo: false
env:
# Target commit for https://github.com/pfalcon/esp-open-sdk/
OPENSDK_COMMIT=a48b12f
CROSS_ROOT="${HOME}/toolchain-${OPENSDK_COMMIT}"
CROSS_BINDIR="${CROSS_ROOT}/bin"
CROSS="ccache xtensa-lx106-elf-"
MAKE_CMD="make WARNINGS_AS_ERRORS=1 -C examples/ build-examples"
PATH=${PATH}:${CROSS_BINDIR}
cache:
directories:
- ${CROSS_ROOT}
addons:
apt:
packages:
- make
- unrar
- autoconf
- automake
- libtool
- gcc
- g++
- gperf
- flex
- bison
- texinfo
- gawk
- libncurses5-dev
- libexpat1-dev
- python
- python-serial
- sed
- git
- vim-common
before_install:
- travis_wait 30 ./install_toolchain.sh
script:
- cd ${TRAVIS_BUILD_DIR}
# Don't verbose-build all examples (too much output), only verbose-build errors
# - ( ${MAKE_CMD} ) || ( ${MAKE_CMD} V=1 )
- git clone https://github.com/espressif/ESP8266_RTOS_SDK.git
- cd ESP8266_RTOS_SDK
- git reset --hard ae29bf8
- echo 'Modifying ESP8266_RTOS_SDK Memory Map'
- cd ld
- sed -i 's/0x5C000/0x67000/g' eagle.app.v6.ld
- cd ..
- sed -i 's/eagle.irom0text.bin---->0x20000/eagle.irom0text.bin---->0x14000/g' Makefile
- git clone https://github.com/HomeACcessoryKid/ESP8266-HomeKit.git
- git clone https://github.com/HomeACcessoryKid/ESP8266-HomeKit-Demo.git
- echo "ESP8266-HomeKit/" >> .gitignore
- echo "ESP8266-HomeKit-Demo/" >> .gitignore
- cd ESP8266-HomeKit
- ./deploy.sh
- cd ..
- cd ESP8266-HomeKit-Demo
- cd Demo
- (echo "y") | ./gen_misc.sh
- cd ..
- cd button-led
- (echo "y") | ./gen_misc.sh
- cd ..
- echo 'Build Done'