Skip to content

Commit 2278049

Browse files
committed
Merge pull request #2 from esp8266/esp8266
pull master
2 parents 57eeb3d + 88834ac commit 2278049

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+3845
-798
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,5 @@ nbproject
7575
build/macosx/esptool-*-osx.zip
7676

7777
build/macosx/dist/osx-xtensa-lx106-elf.tgz
78+
/docs/lib_dump/full
79+
/docs/lib_dump

.travis.yml

+22-19
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,38 @@
1-
sudo: true
1+
sudo: false
2+
23
language: java
34

45
os:
56
- linux
6-
- osx
7+
8+
addons:
9+
apt:
10+
packages:
11+
- ant
712

813
jdk:
914
- oraclejdk8
1015

1116
script:
12-
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update -qq; fi
13-
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install -qq ant; fi
1417
- pushd build
15-
- echo "" | ant dist
18+
- echo "" | ant build
1619
- popd
17-
#- bash -x ./generate-appimage
18-
19-
deploy:
20-
provider: releases
21-
api_key:
22-
secure: eKHcAMuC58JZKRsn1QwbiYE4aL/9dZsybDqqHTo1dUo8x9+3fGed/Dci76ItFFS7SmFfIdl6ej8/Uj0nPK/sIE21blKBe3+L0KAJm0TTq3m0ig1suCmMipCsSW+srWYM0hl58+OKagM4FoHKDjsEnzRDv9Z4xtxyvG+7/XLD1dE=
23-
skip_cleanup: true
24-
file_glob: true
25-
file:
26-
- '$TRAVIS_BUILD_DIR/build/linux/arduino-*.tar.xz'
27-
# - '$TRAVIS_BUILD_DIR/Arduino.AppImage'
28-
on:
29-
tags: true
30-
all_branches: true
20+
- /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_1.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :1 -ac -screen 0 1280x1024x16
21+
- sleep 3
22+
- export DISPLAY=:1.0
23+
- export PATH="$PWD/build/linux/work:$PATH"
24+
- which arduino
25+
- source hardware/esp8266com/esp8266/tests/common.sh
26+
- arduino --board esp8266com:esp8266:generic --save-prefs
27+
- build_sketches arduino $PWD/hardware/esp8266com/esp8266
3128

3229
notifications:
3330
email:
3431
on_success: change
3532
on_failure: change
33+
webhooks:
34+
urls:
35+
- secure: "dnSY+KA7NK+KD+Z71copmANDUsyVePrZ0iXvXxmqMEQv+lp3j2Z87G5pHn7j0WNcNZrejJqOdbElJ9Q4QESRaAYxTR7cA6ameJeEKHiFJrQtN/4abvoXb9E1CxpL8aNON/xgnqCk+fycOK3nbWWXlJBodzBm7KN64vrcHO7et+M="
36+
on_success: change # options: [always|never|change] default: always
37+
on_failure: always # options: [always|never|change] default: always
38+
on_start: false # default: false

README.md

+36-288
Large diffs are not rendered by default.

build/build_board_manager_package.sh

+22-9
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,29 @@ size=`/bin/ls -l $outdir.zip | awk '{print $5}'`
2727
echo Size: $size
2828
echo SHA-256: $sha
2929

30-
if [ "$upload" == "prod" ]; then
31-
remote="http://arduino.esp8266.com"
30+
if [ "$upload" == "stable" ]; then
31+
badge_title="stable"
32+
badge_color="blue"
3233
path=""
33-
elif [ "$upload" == "stag" ]; then
34-
remote="http://arduino.esp8266.com"
34+
elif [ "$upload" == "staging" ]; then
35+
badge_title="staging"
36+
badge_color="yellow"
3537
path="staging/"
38+
elif [ "$upload" == "test" ]; then
39+
badge_title="test"
40+
badge_color="red"
41+
path="test/"
3642
else
3743
upload=""
3844
remote="http://localhost:8000"
3945
fi
4046

47+
if [ ! -z "$upload" ]; then
48+
remote="http://arduino.esp8266.com"
49+
release_date=$(date "+%b_%d,_%Y")
50+
wget -O badge.svg https://img.shields.io/badge/$badge_title-$release_date-$badge_color.svg
51+
fi
52+
4153
cat << EOF > package_esp8266com_index.json
4254
{
4355
"packages": [ {
@@ -76,6 +88,9 @@ cat << EOF > package_esp8266com_index.json
7688
},
7789
{
7890
"name":"Adafruit HUZZAH ESP8266 (ESP-12)"
91+
},
92+
{
93+
"name":"SweetPea ESP-210"
7994
}
8095
],
8196
"toolsDependencies":[ {
@@ -120,7 +135,7 @@ cat << EOF > package_esp8266com_index.json
120135
"url":"https://github.com/igrr/esptool-ck/releases/download/0.4.5/esptool-0.4.5-linux32.tar.gz",
121136
"archiveFileName":"esptool-0.4.5-linux32.tar.gz",
122137
"checksum":"SHA-256:4aa81b97a470641771cf371e5d470ac92d3b177adbe8263c4aae66e607b67755",
123-
"size":"12044"
138+
"size":"12044"
124139
}
125140
]
126141
},
@@ -168,9 +183,7 @@ if [ ! -z "$upload" ]; then
168183
scp $outdir.zip $remote_path
169184
scp package_esp8266com_index.json $remote_path
170185
scp -r $srcdir/doc $remote_path
186+
scp badge.svg $remote_path
171187
else
172-
python -m SimpleHTTPServer
188+
python -m SimpleHTTPServer
173189
fi
174-
175-
176-

0 commit comments

Comments
 (0)