Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小毕学习代码
arduino-esp32
提交
f4ad2624
A
arduino-esp32
项目概览
小毕学习代码
/
arduino-esp32
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
arduino-esp32
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f4ad2624
编写于
2月 05, 2017
作者:
M
me-no-dev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update travis and build script to not fail
上级
c66b54a9
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
9 addition
and
4 deletion
+9
-4
.travis.yml
.travis.yml
+6
-1
tools/common.sh
tools/common.sh
+3
-3
未找到文件。
.travis.yml
浏览文件 @
f4ad2624
...
@@ -8,7 +8,8 @@ os:
...
@@ -8,7 +8,8 @@ os:
-
linux
-
linux
script
:
script
:
-
set -e
#- set -e
-
echo -e "travis_fold:start:sketch_test_env_prepare"
-
wget -O arduino.tar.xz https://www.arduino.cc/download.php?f=/arduino-nightly-linux64.tar.xz
-
wget -O arduino.tar.xz https://www.arduino.cc/download.php?f=/arduino-nightly-linux64.tar.xz
-
tar xf arduino.tar.xz
-
tar xf arduino.tar.xz
-
mv arduino-nightly $HOME/arduino_ide
-
mv arduino-nightly $HOME/arduino_ide
...
@@ -32,11 +33,15 @@ script:
...
@@ -32,11 +33,15 @@ script:
-
echo -e "travis_fold:end:size_report"
-
echo -e "travis_fold:end:size_report"
# test library examples with PlatformIO
# test library examples with PlatformIO
-
echo -e "travis_fold:start:platformio_test_env_prepare"
-
pip install -U https://github.com/platformio/platformio/archive/develop.zip
-
pip install -U https://github.com/platformio/platformio/archive/develop.zip
-
platformio platform install https://github.com/platformio/platform-espressif32.git#feature/stage
-
platformio platform install https://github.com/platformio/platform-espressif32.git#feature/stage
-
sed -i 's/https:\/\/github\.com\/espressif\/arduino-esp32\.git/*/' ~/.platformio/platforms/espressif32_stage/platform.json
-
sed -i 's/https:\/\/github\.com\/espressif\/arduino-esp32\.git/*/' ~/.platformio/platforms/espressif32_stage/platform.json
-
ln -s $TRAVIS_BUILD_DIR ~/.platformio/packages/framework-arduinoespressif32
-
ln -s $TRAVIS_BUILD_DIR ~/.platformio/packages/framework-arduinoespressif32
-
echo -e "travis_fold:end:platformio_test_env_prepare"
-
echo -e "travis_fold:start:platformio_test"
-
"
python
-c
\"
import
glob,os,subprocess,sys;
map(lambda
p:
(sys.stdout.write('Library
example:
%s
\\
n'
%
p),
subprocess.call(['pio',
'ci',
p,
'--board',
'esp32dev'])),
set([os.path.dirname(p)
for
p
in
glob.glob('libraries/*/examples/*/*.ino')
+
glob.glob('libraries/*/examples/*/*/*.ino')]))
\"
"
-
"
python
-c
\"
import
glob,os,subprocess,sys;
map(lambda
p:
(sys.stdout.write('Library
example:
%s
\\
n'
%
p),
subprocess.call(['pio',
'ci',
p,
'--board',
'esp32dev'])),
set([os.path.dirname(p)
for
p
in
glob.glob('libraries/*/examples/*/*.ino')
+
glob.glob('libraries/*/examples/*/*/*.ino')]))
\"
"
-
echo -e "travis_fold:end:platformio_test"
notifications
:
notifications
:
email
:
email
:
...
...
tools/common.sh
浏览文件 @
f4ad2624
...
@@ -31,7 +31,7 @@ function print_size_info()
...
@@ -31,7 +31,7 @@ function print_size_info()
function
build_sketches
()
function
build_sketches
()
{
{
set
+e
#
set +e
local
arduino
=
$1
local
arduino
=
$1
local
srcpath
=
$2
local
srcpath
=
$2
local
build_arg
=
$3
local
build_arg
=
$3
...
@@ -56,7 +56,7 @@ function build_sketches()
...
@@ -56,7 +56,7 @@ function build_sketches()
fi
fi
echo
-e
"
\n
------------ Building
$sketch
------------
\n
"
;
echo
-e
"
\n
------------ Building
$sketch
------------
\n
"
;
# $arduino --verify $sketch;
# $arduino --verify $sketch;
echo
"
$build_cmd
$sketch
"
#
echo "$build_cmd $sketch"
time
(
$build_cmd
$sketch
>
build.log
)
time
(
$build_cmd
$sketch
>
build.log
)
local
result
=
$?
local
result
=
$?
if
[
$result
-ne
0
]
;
then
if
[
$result
-ne
0
]
;
then
...
@@ -68,5 +68,5 @@ function build_sketches()
...
@@ -68,5 +68,5 @@ function build_sketches()
rm
build.log
rm
build.log
print_size_info
$build_dir
/
*
.elf
>>
size.log
print_size_info
$build_dir
/
*
.elf
>>
size.log
done
done
set
-e
#
set -e
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录