-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,16 @@ | ||
# rt-thread_linux_env | ||
# RT-Thread Linux CI Environment | ||
|
||
|
||
|
||
一个用于嵌入式实时操作系统 RT-Thread 进行持续集成的容器化环境。 | ||
|
||
范例: | ||
|
||
[Azure Pipelines](azure-pipelines.md) | ||
|
||
|
||
|
||
已知问题: | ||
|
||
1. pkgs --update 执行失败 命令行却没有失败。 | ||
2. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
``` yml | ||
container: | ||
image: maikebing/rt-thread_linux_env:latest | ||
options: --hostname container-test | ||
|
||
|
||
steps: | ||
- script: if [ ! -f ~/.env ]; then ln /env ~/.env -s;fi | ||
displayName: "Init env" | ||
- script: pkgs --printenv;pkgs --list;pkgs --update | ||
displayName: "Checkout all packages" | ||
workingDirectory: $(Build.SourcesDirectory) | ||
- script: cppcheck --enable=all --std=c99 applications/ | ||
displayName: "Static Code Analysis" | ||
workingDirectory: $(Build.SourcesDirectory) | ||
- script: scons --target=mdk5 | ||
workingDirectory: $(Build.SourcesDirectory) | ||
displayName: "Build MDK5 Project" | ||
- task: PublishBuildArtifacts@1 | ||
inputs: | ||
PathtoPublish: '$(Build.ArtifactStagingDirectory)' | ||
TargetPath: '$(Build.SourcesDirectory)\rtthread.bin' | ||
ArtifactName: 'rt-thread' | ||
publishLocation: 'Container' | ||
StoreAsTar: true | ||
``` |