Browse Source

test drone

master
wanggang 1 year ago
parent
commit
afb252bc59
  1. 5
      .drone.yml
  2. 3
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/.gitattributes
  3. 3
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/SettleAccount.HttpApi.Host.csproj
  4. 14
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/start.sh
  5. 3
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/stop.sh

5
.drone.yml

@ -43,8 +43,7 @@ steps:
- mkdir -p /d/BQ-JS/publish - mkdir -p /d/BQ-JS/publish
- cd /d/BQ-JS/publish - cd /d/BQ-JS/publish
- cmd.exe - cmd.exe
- stop.sh - stop.cmd
- exit
- sleep 3s - sleep 3s
- cd .. - cd ..
- rm -rf publish - rm -rf publish
@ -74,7 +73,7 @@ steps:
script: script:
- cd /d/BQ-JS/publish - cd /d/BQ-JS/publish
- cmd.exe - cmd.exe
- start.sh - start.cmd
# - name: deploy-scp # - name: deploy-scp
# image: appleboy/drone-scp # image: appleboy/drone-scp

3
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/.gitattributes

@ -0,0 +1,3 @@
* text=auto eol=lf
*.{cmd,[cC][mM][dD]} text eol=lf
*.{bat,[bB][aA][tT]} text eol=lf

3
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/SettleAccount.HttpApi.Host.csproj

@ -103,9 +103,6 @@
<None Update="stop.cmd"> <None Update="stop.cmd">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None> </None>
<None Update="stop.sh">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup> </ItemGroup>
<ProjectExtensions><VisualStudio><UserProperties appsettings_1json__JsonSchema="" /></VisualStudio></ProjectExtensions> <ProjectExtensions><VisualStudio><UserProperties appsettings_1json__JsonSchema="" /></VisualStudio></ProjectExtensions>

14
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/start.sh

@ -1,14 +0,0 @@
@echo off
tasklist|find /i "SettleAccount.HttpApi.Host.exe"
if %errorlevel% == 0 (
exit
)
cd /d %~dp0
%1 start mshta vbscript:createobject("wscript.shell").run("""%~0"" ::",0)(window.close)&&exit
start /b SettleAccount.HttpApi.Host.exe --urls http://*:16082

3
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/stop.sh

@ -1,3 +0,0 @@
@echo off
taskkill /im SettleAccount.HttpApi.Host.exe /f /t
Loading…
Cancel
Save