Auto csproj fix and update by bot.
This commit is contained in:
+5
-13
@@ -31,6 +31,8 @@ lint:
|
|||||||
- build
|
- build
|
||||||
script:
|
script:
|
||||||
- jb inspectcode ./*.sln --output=analyze_output.xml --build -f=xml
|
- jb inspectcode ./*.sln --output=analyze_output.xml --build -f=xml
|
||||||
|
# Remove the warning of UnusedAutoPropertyAccessor
|
||||||
|
- sed -i '/UnusedAutoPropertyAccessor/d' analyze_output.xml
|
||||||
- grep 'WARNING' analyze_output.xml && cat analyze_output.xml && exit 1 || echo "No warning found"
|
- grep 'WARNING' analyze_output.xml && cat analyze_output.xml && exit 1 || echo "No warning found"
|
||||||
artifacts:
|
artifacts:
|
||||||
when: always
|
when: always
|
||||||
@@ -62,15 +64,6 @@ test:
|
|||||||
coverage_format: cobertura
|
coverage_format: cobertura
|
||||||
path: ./Cobertura.xml
|
path: ./Cobertura.xml
|
||||||
|
|
||||||
publish:
|
|
||||||
stage: publish
|
|
||||||
needs:
|
|
||||||
- lint
|
|
||||||
- test
|
|
||||||
script:
|
|
||||||
- dotnet build -maxcpucount:1 --configuration Release
|
|
||||||
- dotnet publish -maxcpucount:1 --configuration Release --runtime linux-x64 --no-self-contained *.sln
|
|
||||||
|
|
||||||
pack:
|
pack:
|
||||||
stage: publish
|
stage: publish
|
||||||
needs:
|
needs:
|
||||||
@@ -117,10 +110,9 @@ upload_to_local_nuget:
|
|||||||
deploy_docker:
|
deploy_docker:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
environment: production
|
environment: production
|
||||||
needs:
|
needs:
|
||||||
- publish
|
- lint
|
||||||
dependencies:
|
- test
|
||||||
- publish
|
|
||||||
script:
|
script:
|
||||||
- docker build . -t hub.aiursoft.cn/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME:latest
|
- docker build . -t hub.aiursoft.cn/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME:latest
|
||||||
- docker push hub.aiursoft.cn/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME:latest
|
- docker push hub.aiursoft.cn/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user