持续集成CI包括以下几个部分
1.代码程序
2.gitlab-ci
3 gitlab-runner
若有在程序中使用ruuner,需要编写.git-ci.yml文件
build_job:
stage: build
script:
- chcp 65001
- echo %PATH%
- call vcvarsall.bat
- echo "now path is " %PATH%
- md build
- cd build
- qmake.exe ..\TempeAnalysis.pro -spec win32-msvc2015
- jom.exe
- cd ../
- call deploy_temperAnalysis.bat
然后将该文件添加到git-ci中:
git add .gitlab-ci.yml
git commit -m "Add .gitlab-ci.yml"
git push origin master
在yml文件中: - qmake.exe ..\TempeAnalysis.pro -spec win32-msvc2015
- jom.exe
这两句话是编译程序
call deploy_temperAnalysis.bat
这句话是用来打包程序的。在项目中使用innosetup来打包程序。