You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

167 lines
3.9 KiB

8 years ago
7 years ago
8 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
7 years ago
8 years ago
7 years ago
8 years ago
8 years ago
7 years ago
8 years ago
8 years ago
7 years ago
8 years ago
8 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
7 years ago
8 years ago
7 years ago
8 years ago
7 years ago
8 years ago
7 years ago
8 years ago
7 years ago
8 years ago
8 years ago
8 years ago
7 years ago
7 years ago
8 years ago
7 years ago
8 years ago
7 years ago
8 years ago
8 years ago
8 years ago
7 years ago
8 years ago
8 years ago
7 years ago
8 years ago
7 years ago
8 years ago
7 years ago
8 years ago
7 years ago
8 years ago
8 years ago
7 years ago
8 years ago
8 years ago
7 years ago
8 years ago
8 years ago
7 years ago
8 years ago
8 years ago
7 years ago
7 years ago
8 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
7 years ago
  1. # configuration for "master" branch
  2. - branches:
  3. only:
  4. - master
  5. version: 6.6.{build}
  6. image: Visual Studio 2017
  7. assembly_info:
  8. patch: true
  9. file: '**\AssemblyInfo.cs'
  10. assembly_version: "{version}"
  11. assembly_file_version: "{version}"
  12. assembly_informational_version: "{version}"
  13. configuration:
  14. - Release
  15. environment:
  16. nodejs_version: "6"
  17. TreatWarningsAsErrors: false
  18. install:
  19. - ps: Install-Product node $env:nodejs_version
  20. - npm install gulp -g
  21. - npm install
  22. skip_tags: true
  23. cache:
  24. - packages -> **\packages.config
  25. - node_modules # local npm modules
  26. before_build:
  27. - nuget restore siteserver-all.sln
  28. build:
  29. project: siteserver-all.sln # path to Visual Studio solution or project
  30. publish_nuget: true
  31. after_build:
  32. - gulp build
  33. - nuget pack build/SS.CMS.nuspec
  34. - gulp zip
  35. artifacts:
  36. - path: siteserver_install.zip
  37. name: siteserver_install
  38. - path: siteserver.exe
  39. name: siteserver.exe
  40. - path: "*.nupkg"
  41. deploy:
  42. - provider: GitHub
  43. release: siteserver-v$(appveyor_build_version)
  44. description: "SiteServer CMS"
  45. auth_token:
  46. secure: B/TFrPxGyyTS/NKTQsf/GBLPfGI+Rz/j3e7FVLaP6yjeUDljwkfvV70C+CT34/10
  47. artifact: /.*\.[zip|exe]/
  48. draft: false
  49. prerelease: false
  50. on:
  51. branch: master
  52. appveyor_repo_tag: false
  53. - provider: NuGet
  54. server: # remove to push to NuGet.org
  55. api_key:
  56. secure: B9umZPwBVx2TMfYt7G1Eppy7XX0FkqWioXxwR+lKv5XVRc6ezjOXP8D9iuisOWBF
  57. skip_symbols: false
  58. symbol_server: # remove to push symbols to SymbolSource.org
  59. artifact: /.*\.nupkg/
  60. notifications:
  61. - provider: GitHubPullRequest
  62. on_build_success: true
  63. on_build_failure: true
  64. # configuration for "staging" branch
  65. - branches:
  66. only:
  67. - staging
  68. version: 6.6.{build}-beta
  69. image: Visual Studio 2017
  70. assembly_info:
  71. patch: true
  72. file: '**\AssemblyInfo.cs'
  73. assembly_version: "{version}"
  74. assembly_file_version: "{version}"
  75. assembly_informational_version: "{version}"
  76. configuration:
  77. - Release
  78. environment:
  79. nodejs_version: "6"
  80. TreatWarningsAsErrors: false
  81. DOCKER_USER:
  82. secure: plV6NmiOZal0f3H/xNFuoA==
  83. DOCKER_PASS:
  84. secure: AzfvhYL4heX1Acqv5C3Oug==
  85. install:
  86. - ps: Install-Product node $env:nodejs_version
  87. - npm install gulp -g
  88. - npm install
  89. - docker version
  90. skip_tags: true
  91. cache:
  92. - packages -> **\packages.config
  93. - node_modules # local npm modules
  94. before_build:
  95. - nuget restore siteserver-all.sln
  96. build:
  97. project: siteserver-all.sln # path to Visual Studio solution or project
  98. publish_nuget: true
  99. after_build:
  100. - gulp build
  101. - nuget pack build/SS.CMS.nuspec
  102. - gulp zip
  103. # - docker build -t siteserver/cms:latest -t siteserver/cms:v%appveyor_build_version% .
  104. # - docker login -u="%DOCKER_USER%" -p="%DOCKER_PASS%"
  105. # - docker push siteserver/cms
  106. artifacts:
  107. - path: siteserver_install.zip
  108. name: siteserver_install
  109. - path: siteserver.exe
  110. name: siteserver.exe
  111. - path: "*.nupkg"
  112. deploy:
  113. - provider: GitHub
  114. release: siteserver-v$(appveyor_build_version)
  115. description: "SiteServer CMS"
  116. auth_token:
  117. secure: B/TFrPxGyyTS/NKTQsf/GBLPfGI+Rz/j3e7FVLaP6yjeUDljwkfvV70C+CT34/10
  118. artifact: /.*\.[zip|exe]/
  119. draft: false
  120. prerelease: false
  121. on:
  122. branch: staging
  123. appveyor_repo_tag: false
  124. - provider: NuGet
  125. server: https://www.myget.org/F/siteserver/api/v2/package # remove to push to NuGet.org
  126. api_key:
  127. secure: i9vISdFyCeWbRUQw+jhcF748i4oWdeatGBrx+dJ07SDTpt7Hsk9YCRp/ha3ZXfZF
  128. skip_symbols: false
  129. symbol_server: # remove to push symbols to SymbolSource.org
  130. artifact: /.*\.nupkg/
  131. notifications:
  132. - provider: GitHubPullRequest
  133. on_build_success: true
  134. on_build_failure: true