Skip to content

Commit

Permalink
修改说明。
Browse files Browse the repository at this point in the history
  • Loading branch information
maikebing committed Jul 27, 2022
1 parent a5bdbe8 commit 1dae702
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
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.
26 changes: 26 additions & 0 deletions azure-pipelines.md
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
```

0 comments on commit 1dae702

Please sign in to comment.