sebanisu.yml 2.4 KB

123456789101112131415161718192021222324252627282930
  1. version: 1.0.{build}
  2. image:
  3. - Ubuntu
  4. - Visual Studio 2019
  5. configuration: DebugWindows
  6. platform: x64
  7. environment:
  8. matrix:
  9. - platform: x64
  10. projectname: OpenGL
  11. - platform: x86
  12. projectname: OpenGL
  13. - platform: x64
  14. projectname: DirectX
  15. - platform: x86
  16. projectname: DirectX
  17. build_script:
  18. - ps: "# List PowerShell's Environmental Variables\n#gci env:* | sort-object name\nif($isLinux)\n{\n$Env:operatingsystem = \"Linux\"\nif($Env:projectname -eq \"DirectX\")\n{\nexit\n}\n# Update\nInvoke-Command -ScriptBlock {\nsudo apt update\nsudo apt-get --assume-yes install nuget mono-complete mono-devel gtk-sharp3 zip ffmpeg\necho ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections\nsudo apt-get --assume-yes install ttf-mscorefonts-installer\nwget https://github.com/MonoGame/MonoGame/releases/download/v3.7.1/monogame-sdk.run\nchmod +x monogame-sdk.run\nsudo ./monogame-sdk.run --noexec --keep --target ./monogame\ncd monogame\necho Y | sudo ./postinstall.sh\ncd .. \nnuget restore\nmsbuild $Env:APPVEYOR_BUILD_FOLDER/OpenGL$Env:operatingsystem /property:Configuration=Debug$Env:operatingsystem /property:Platform=$Env:platform\n}\n\n# Zip Contents\n\nInvoke-Expression \"zip $Env:APPVEYOR_PROJECT_NAME-$Env:operatingsystem-$Env:projectname-$Env:platform.zip -r $Env:APPVEYOR_BUILD_FOLDER/bin\"\n\n}\nif($isWindows)\n{\n$Env:operatingsystem = \"Windows\"\n\n\n# Install MonoGame\n\n(New-Object Net.WebClient).DownloadFile('https://github.com/MonoGame/MonoGame/releases/download/v3.7.1/MonoGameSetup.exe', 'C:\\MonoGameSetup.exe')\n\nInvoke-Command -ScriptBlock {C:\\MonoGameSetup.exe /S /v/qn}\n\n# Nuget Restore\n\nInvoke-Command -ScriptBlock {nuget restore}\n\n# Build OpenVIII\n\nInvoke-Expression \"msbuild $Env:APPVEYOR_BUILD_FOLDER\\$Env:projectname /property:Configuration=Debug$Env:operatingsystem /property:Platform=$Env:Platform\"\n\n# Zip Contents\n\nInvoke-Expression \"7z a $Env:APPVEYOR_PROJECT_NAME-$Env:operatingsystem-$Env:projectname-$Env:Platform.zip -r $Env:APPVEYOR_BUILD_FOLDER\\bin\\*.*\"\n}"
  19. artifacts:
  20. - path: '*.zip'
  21. name: Canary
  22. deploy:
  23. - provider: GitHub
  24. release: Canary
  25. description: Automatic Test build. Linux built on Ubuntu 18.04. Windows built on Visual Studio 2019.
  26. auth_token:
  27. secure: eEeKv5g3NCHIMBHemwNRtL+bD7aTK9hUf9xvlrkHJj2gQF1gbGFw+2uDtvfFTU91
  28. artifact: Canary
  29. prerelease: true
  30. force_update: true