Skip to content

Commit 1dae702

Browse files
committed
修改说明。
1 parent a5bdbe8 commit 1dae702

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,16 @@
1-
# rt-thread_linux_env
1+
# RT-Thread Linux CI Environment
2+
3+
4+
5+
一个用于嵌入式实时操作系统 RT-Thread 进行持续集成的容器化环境。
6+
7+
范例:
8+
9+
[Azure Pipelines](azure-pipelines.md)
10+
11+
12+
13+
已知问题:
14+
15+
1. pkgs --update 执行失败 命令行却没有失败。
16+
2.

azure-pipelines.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
``` yml
2+
container:
3+
image: maikebing/rt-thread_linux_env:latest
4+
options: --hostname container-test
5+
6+
7+
steps:
8+
- script: if [ ! -f ~/.env ]; then ln /env ~/.env -s;fi
9+
displayName: "Init env"
10+
- script: pkgs --printenv;pkgs --list;pkgs --update
11+
displayName: "Checkout all packages"
12+
workingDirectory: $(Build.SourcesDirectory)
13+
- script: cppcheck --enable=all --std=c99 applications/
14+
displayName: "Static Code Analysis"
15+
workingDirectory: $(Build.SourcesDirectory)
16+
- script: scons --target=mdk5
17+
workingDirectory: $(Build.SourcesDirectory)
18+
displayName: "Build MDK5 Project"
19+
- task: PublishBuildArtifacts@1
20+
inputs:
21+
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
22+
TargetPath: '$(Build.SourcesDirectory)\rtthread.bin'
23+
ArtifactName: 'rt-thread'
24+
publishLocation: 'Container'
25+
StoreAsTar: true
26+
```

0 commit comments

Comments
 (0)