Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
rt-thread
提交
e0048ee4
R
rt-thread
项目概览
BaiXuePrincess
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
e0048ee4
编写于
1月 20, 2013
作者:
R
Rogerz Zhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add detail build result
上级
6a60d403
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
68 addition
and
62 deletion
+68
-62
.travis.yml
.travis.yml
+3
-2
tools/auto-ci.py
tools/auto-ci.py
+65
-60
未找到文件。
.travis.yml
浏览文件 @
e0048ee4
...
...
@@ -2,11 +2,12 @@ language: c
install
:
-
mkdir ~/toolchain
-
curl -s https://sourcery.mentor.com/public/gnu_toolchain/arm-none-eabi/arm-2011.03-42-arm-none-eabi-i686-pc-linux-gnu.tar.bz2 | tar xjf - -C ~/toolchain
-
"
[
$RTT_CPU
=
'arm'
]
&&
curl
-s
https://sourcery.mentor.com/public/gnu_toolchain/arm-none-eabi/arm-2011.03-42-arm-none-eabi-i686-pc-linux-gnu.tar.bz2
|
tar
xjf
-
-C
~/toolchain"
before_script
:
-
export RTT_EXEC_PATH=~/toolchain/arm-2011.03/bin
-
export RTT_ROOT=`pwd`
-
export RTT_CC='gcc'
-
cd tools
script
:
...
...
@@ -16,4 +17,4 @@ notifications:
email
:
false
env
:
-
RTT_C
C='gcc
'
-
RTT_C
PU='arm
'
tools/auto-ci.py
浏览文件 @
e0048ee4
import
os
import
sys
BSP_ROOT
=
'../bsp'
unsupported
=
"""
bf533
dev3210
jz47xx
ls1bdev
m16c62p
microblaze
mini4020
nuc140
nios_ii
pic32ethernet
upd70f3454
wh44b0
xplorer4330
"""
failed
=
"""
stm32f0x
"""
bsp_to_cpu
=
{
'bf533'
:
'unknown'
,
'dev3210'
:
'unknown'
,
'jz47xx'
:
'unknown'
,
'ls1bdev'
:
'unknown'
,
'm16c62p'
:
'unknown'
,
'microblaze'
:
'unknown'
,
'mini4020'
:
'unknown'
,
'nuc140'
:
'unknown'
,
'nios_ii'
:
'unknown'
,
'pic32ethernet'
:
'unknown'
,
'upd70f3454'
:
'unknown'
,
'wh44b0'
:
'unknown'
,
'xplorer4330'
:
'unknown'
,
'avr32uc3b0'
:
'avr'
,
'taihu'
:
'ppc'
,
'simulator'
:
'x86'
,
'x86'
:
'x86'
,
'at91sam9260'
:
'arm'
,
'efm32'
:
'arm'
,
'lm3s8962'
:
'arm'
,
'lm3s9b9x'
:
'arm'
,
'lm4f232'
:
'arm'
,
'lpc1114'
:
'arm'
,
'lpc122x'
:
'arm'
,
'lpc176x'
:
'arm'
,
'lpc178x'
:
'arm'
,
'lpc2148'
:
'arm'
,
'lpc2478'
:
'arm'
,
'mb9bf500r'
:
'arm'
,
'mb9bf506r'
:
'arm'
,
'mini2440'
:
'arm'
,
'sam7s'
:
'arm'
,
'sam7x'
:
'arm'
,
'stm32f0x'
:
'arm'
,
'stm32f107'
:
'arm'
,
'stm32f10x'
:
'arm'
,
'stm32f20x'
:
'arm'
,
'stm32f40x'
:
'arm'
,
}
avr
=
"""
avr32uc3b0
"""
results
=
{
'success'
:
[],
'fail'
:
[],
'ignore'
:
[]
}
ppc
=
"""
taihu
"""
fail
=
False
x86
=
"""
simulator
x86
"""
arm
=
"""
at91sam9260
efm32
lm3s8962
lm3s9b9x
lm4f232
lpc1114
lpc122x
lpc176x
lpc178x
lpc2148
lpc2478
mb9bf500r
mb9bf506r
mini2440
sam7s
sam7x
stm32f107
stm32f10x
stm32f20x
stm32f40x
"""
.
split
()
BSP_ROOT
=
'../bsp'
for
item
in
arm
:
project_dir
=
os
.
path
.
join
(
BSP_ROOT
,
item
)
if
os
.
path
.
isfile
(
os
.
path
.
join
(
project_dir
,
'SConstruct'
)):
for
bsp
,
cpu
in
bsp_to_cpu
.
iteritems
()
:
project_dir
=
os
.
path
.
join
(
BSP_ROOT
,
bsp
)
if
os
.
getenv
(
'RTT_CPU'
)
==
cpu
and
os
.
path
.
isfile
(
os
.
path
.
join
(
project_dir
,
'SConstruct'
)):
if
os
.
system
(
'scons --directory='
+
project_dir
)
!=
0
:
print
'build failed!!'
sys
.
exit
(
1
)
results
[
'fail'
].
append
(
bsp
)
fail
=
True
else
:
results
[
'success'
].
append
(
bsp
)
else
:
results
[
'ignore'
].
append
(
bsp
)
for
result
,
bsp_list
in
results
.
iteritems
():
print
"## {0}: {1}
\n
"
.
format
(
result
,
len
(
bsp_list
))
for
bsp
in
bsp_list
:
print
"* "
+
bsp
sys
.
exit
(
0
)
if
fail
:
sys
.
exit
(
1
)
else
:
sys
.
exit
(
0
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录