2018-09-05 23:37:05 +02:00
#init:
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
#on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
2018-12-11 16:16:17 +01:00
#install:
2018-12-11 16:15:56 +01:00
# - choco install cloc --no-progress
# - "cloc --vcs git --exclude-dir Resources,store,test,UWP,Properties --include-lang C#,JavaScript,TypeScript,PowerShell"
2018-09-23 05:31:42 +02:00
# - appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
# - appveyor DownloadFile https://aka.ms/vs/15/release/vs_community.exe
# - vs_community.exe update --wait --quiet --norestart --installPath "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community"
# - ps: .\src\Android\update-android.ps1
2017-02-11 07:13:03 +01:00
before_build :
- nuget restore
2017-02-14 03:57:11 +01:00
- IF DEFINED keystore_dec_secret nuget install secure-file -ExcludeVersion
2017-12-22 04:39:04 +01:00
- IF DEFINED google_services_dec_secret secure-file\tools\secure-file -decrypt src\Android\google-services.json.enc -secret %google_services_dec_secret%
2017-02-11 07:13:03 +01:00
after_build :
2018-01-11 04:10:32 +01:00
- ps : IF($env:keystore_dec_secret) { .\src\Android\ci-build-apks.ps1 }
2017-02-11 07:13:03 +01:00
on_success :
2017-02-14 03:57:11 +01:00
- IF DEFINED play_dec_secret secure-file\tools\secure-file -decrypt store\google\Publisher\play_creds.json.enc -secret %play_dec_secret%
2018-01-11 15:04:58 +01:00
- IF DEFINED play_dec_secret dotnet store\google\Publisher\bin\Release\netcoreapp2.0\Publisher.dll %APPVEYOR_BUILD_FOLDER%\store\google\Publisher\play_creds.json %APPVEYOR_BUILD_FOLDER%\com.x8bit.bitwarden-%APPVEYOR_BUILD_NUMBER%.apk alpha
2017-02-11 07:13:03 +01:00
artifacts :
2017-05-21 19:24:44 +02:00
- path : com.x8bit.bitwarden-%APPVEYOR_BUILD_NUMBER%.apk
2018-01-10 15:35:47 +01:00
- path : com.x8bit.bitwarden-fdroid-%APPVEYOR_BUILD_NUMBER%.apk
2017-05-21 19:24:44 +02:00
branches :
except :
2017-05-21 19:31:55 +02:00
- l10n_master
2017-11-20 22:32:23 +01:00
skip_tags : true
2018-01-11 15:04:58 +01:00
configuration : Release
2018-05-29 21:54:57 +02:00
image : Visual Studio 2017