appveyor.yml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. version: '{build}'
  2. max_jobs: 1
  3. image: WMF 5
  4. clone_depth: 5
  5. branches:
  6. only:
  7. - master
  8. #build:
  9. # verbosity: minimal
  10. environment:
  11. # au job parameters
  12. au_timeout: 100
  13. au_threads: 10
  14. au_push: true
  15. au_force: false
  16. # Github credentials - used to save result to gist and to commit pushed packages to the git repository
  17. github_user: YOUR_GITHUB_USERNAME_HERE
  18. github_pass:
  19. secure: YOUR_PASSWORD_OR_2FA_AUTH_TOKEN_HERE_ENCRYPTED_STRING #https://ci.appveyor.com/tools/encrypt
  20. github_user_repo: 'YOUR_GITHUB_USERNAME_HERE/chocolatey-packages' #https://github.com/chocolatey/chocolatey-packages-template is 'chocolatey/chocolatey-packages-template'
  21. # Email credentials - for error notifications
  22. mail_user:
  23. secure: YOUR_EMAIL_ACCOUNT_HERE_ENCRYPTED_STRING #https://ci.appveyor.com/tools/encrypt
  24. mail_pass:
  25. secure: YOUR_EMAIL_PASSWORD_HERE_ENCRYPTED_STRING #https://ci.appveyor.com/tools/encrypt
  26. mail_server: smtp.gmail.com
  27. mail_port: 587
  28. mail_enablessl: true
  29. # ID of the gist used to save run results - create a gist under the github_user (secret or not) and grab the id - https://gist.github.com/name/id
  30. gist_id: YOUR_GIST_ID_CREATE_GIST_SAVE_ID_HERE
  31. # Chocolatey API key - to push updated packages
  32. api_key:
  33. secure: YOUR_CHOCO_API_KEY_HERE_ENCRYPTED_STRING # https://ci.appveyor.com/tools/encrypt
  34. init:
  35. - git config --global user.email "chocolatey@realdimensions.net"
  36. - git config --global user.name "Chocolatey"
  37. install:
  38. - ps: 'Get-CimInstance win32_operatingsystem -Property Caption, OSArchitecture, Version | fl Caption, OSArchitecture, Version'
  39. - ps: $PSVersionTable
  40. - SET PATH=C:\Ruby21-x64\bin;%PATH%
  41. - ruby -v
  42. - gem install gist --no-ri --no-rdoc
  43. - "ruby -e \"require 'gist'; Gist.login! username: ENV['github_user'], password: ENV['github_pass'] if ENV['github_user'] \""
  44. - ps: |
  45. "machine github.com", "login $Env:github_user", "password $Env:github_pass" | Out-File ~/_netrc -Encoding ascii
  46. Install-PackageProvider -Name NuGet -Force
  47. Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
  48. Install-Module au -Scope CurrentUser
  49. Get-Module au -ListAvailable | select Name, Version
  50. build_script:
  51. - ps: .\au\update_all.ps1
  52. #on_finish:
  53. #- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
  54. artifacts:
  55. - path: automatic\update_info.xml
  56. - path: gist.md
  57. notifications:
  58. - provider: Email
  59. to: $(mail_user)
  60. on_build_success: false
  61. on_build_failure: true
  62. on_build_status_changed: true