mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 02:18:27 +03:00
appveyor updates
This commit is contained in:
parent
775d929711
commit
d0ea6aedd0
1 changed files with 51 additions and 15 deletions
66
appveyor.yml
66
appveyor.yml
|
@ -1,7 +1,23 @@
|
||||||
#init:
|
image: Visual Studio 2017
|
||||||
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
|
||||||
#on_finish:
|
branches:
|
||||||
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
except:
|
||||||
|
- l10n_master
|
||||||
|
|
||||||
|
configuration: Release
|
||||||
|
|
||||||
|
init:
|
||||||
|
- ps: |
|
||||||
|
if($env:DEBUG_RDP -eq "true") {
|
||||||
|
iex ((new-object net.webclient).DownloadString(`
|
||||||
|
'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
||||||
|
}
|
||||||
|
- ps: |
|
||||||
|
if($env:APPVEYOR_REPO_TAG -eq "true") {
|
||||||
|
$tagName = $env:APPVEYOR_REPO_TAG_NAME.TrimStart("v")
|
||||||
|
$env:RELEASE_NAME = "Version ${tagName}"
|
||||||
|
}
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- choco install cloc --no-progress
|
- choco install cloc --no-progress
|
||||||
- "cloc --vcs git --exclude-dir Resources,store,test,Properties --include-lang C#,XAML"
|
- "cloc --vcs git --exclude-dir Resources,store,test,Properties --include-lang C#,XAML"
|
||||||
|
@ -9,21 +25,41 @@ install:
|
||||||
# - appveyor DownloadFile https://aka.ms/vs/15/release/vs_community.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"
|
# - vs_community.exe update --wait --quiet --norestart --installPath "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community"
|
||||||
# - ps: .\src\Android\update-android.ps1
|
# - ps: .\src\Android\update-android.ps1
|
||||||
|
|
||||||
before_build:
|
before_build:
|
||||||
- nuget restore
|
- nuget restore
|
||||||
- IF DEFINED keystore_dec_secret nuget install secure-file -ExcludeVersion
|
- IF DEFINED KEYSTORE_DEC_SECRET nuget install secure-file -ExcludeVersion
|
||||||
- IF DEFINED google_services_dec_secret secure-file\tools\secure-file -decrypt src\Android\google-services.json.enc -secret %google_services_dec_secret%
|
- IF DEFINED GOOGLE_SERVICES_DEC_SECRET secure-file\tools\secure-file -decrypt src\Android\google-services.json.enc -secret %GOOGLE_SERVICES_DEC_SECRET%
|
||||||
|
|
||||||
after_build:
|
after_build:
|
||||||
- ps: IF($env:keystore_dec_secret) { .\src\Android\ci-build-apks.ps1 }
|
- ps: |
|
||||||
|
if($env:KEYSTORE_DEC_SECRET) {
|
||||||
|
.\src\Android\ci-build-apks.ps1
|
||||||
|
}
|
||||||
|
|
||||||
on_success:
|
on_success:
|
||||||
- IF DEFINED play_dec_secret secure-file\tools\secure-file -decrypt store\google\Publisher\play_creds.json.enc -secret %play_dec_secret%
|
- IF DEFINED PLAY_DEC_SECRET secure-file\tools\secure-file -decrypt store\google\Publisher\play_creds.json.enc -secret %PLAY_DEC_SECRET%
|
||||||
- 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
|
- 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
|
||||||
|
|
||||||
|
on_finish:
|
||||||
|
- ps: |
|
||||||
|
if($isWindows -and $env:DEBUG_RDP -eq "true") {
|
||||||
|
$blockRdp = $true
|
||||||
|
iex ((new-object net.webclient).DownloadString(`
|
||||||
|
'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
||||||
|
}
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
- path: com.x8bit.bitwarden-%APPVEYOR_BUILD_NUMBER%.apk
|
- path: com.x8bit.bitwarden-%APPVEYOR_BUILD_NUMBER%.apk
|
||||||
- path: com.x8bit.bitwarden-fdroid-%APPVEYOR_BUILD_NUMBER%.apk
|
- path: com.x8bit.bitwarden-fdroid-%APPVEYOR_BUILD_NUMBER%.apk
|
||||||
branches:
|
|
||||||
except:
|
deploy:
|
||||||
- l10n_master
|
tag: $(APPVEYOR_REPO_TAG_NAME)
|
||||||
skip_tags: true
|
release: $(RELEASE_NAME)
|
||||||
configuration: Release
|
provider: GitHub
|
||||||
image: Visual Studio 2017
|
auth_token: $(GH_TOKEN)
|
||||||
|
artifact: /.*/
|
||||||
|
force_update: true
|
||||||
|
on:
|
||||||
|
branch: master
|
||||||
|
APPVEYOR_REPO_TAG: true
|
||||||
|
|
Loading…
Reference in a new issue