mirror of
https://github.com/bitwarden/mobile.git
synced 2024-12-20 15:57:45 +01:00
re-enable appveyor regular builds
This commit is contained in:
parent
a8ee067215
commit
01a64676b4
22
appveyor.yml
22
appveyor.yml
@ -1,5 +1,5 @@
|
|||||||
image:
|
image:
|
||||||
#- Visual Studio 2017
|
- Visual Studio 2017
|
||||||
- Ubuntu1804
|
- Ubuntu1804
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
@ -37,13 +37,13 @@ install:
|
|||||||
sudo apt-get -qq update
|
sudo apt-get -qq update
|
||||||
sudo apt-get -qqy install --no-install-recommends fdroidserver wget
|
sudo apt-get -qqy install --no-install-recommends fdroidserver wget
|
||||||
- sh: |
|
- sh: |
|
||||||
#if [ "${APPVEYOR_REPO_TAG}" == "true" -a "${GH_TOKEN}" != "" ]
|
if [ "${APPVEYOR_REPO_TAG}" == "true" -a "${GH_TOKEN}" != "" ]
|
||||||
#then
|
then
|
||||||
git config --global credential.helper store
|
git config --global credential.helper store
|
||||||
echo "https://${GH_TOKEN}:x-oauth-basic@github.com" >> ~/.git-credentials
|
echo "https://${GH_TOKEN}:x-oauth-basic@github.com" >> ~/.git-credentials
|
||||||
git config --global user.email "ci@bitwarden.com"
|
git config --global user.email "ci@bitwarden.com"
|
||||||
git config --global user.name "Bitwarden CI"
|
git config --global user.name "Bitwarden CI"
|
||||||
#fi
|
fi
|
||||||
- cmd: choco install cloc --no-progress
|
- cmd: choco install cloc --no-progress
|
||||||
- cmd: "cloc --vcs git --exclude-dir Resources,store,test,Properties --include-lang C#,XAML"
|
- cmd: "cloc --vcs git --exclude-dir Resources,store,test,Properties --include-lang C#,XAML"
|
||||||
#- cmd: appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
|
#- cmd: appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
|
||||||
@ -66,8 +66,8 @@ before_build:
|
|||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
- sh: |
|
- sh: |
|
||||||
#if [ "${APPVEYOR_REPO_TAG}" == "true" ]
|
if [ "${APPVEYOR_REPO_TAG}" == "true" ]
|
||||||
#then
|
then
|
||||||
mkdir dist
|
mkdir dist
|
||||||
cp CNAME ./dist
|
cp CNAME ./dist
|
||||||
cd store
|
cd store
|
||||||
@ -80,7 +80,7 @@ build_script:
|
|||||||
echo "local_copy_dir=\"$TEMP_DIR\"" >>config.py
|
echo "local_copy_dir=\"$TEMP_DIR\"" >>config.py
|
||||||
mkdir -p repo
|
mkdir -p repo
|
||||||
curl -Lo repo/com.x8bit.bitwarden-fdroid.apk \
|
curl -Lo repo/com.x8bit.bitwarden-fdroid.apk \
|
||||||
https://github.com/bitwarden/mobile/releases/download/v1.22.1/com.x8bit.bitwarden-fdroid.apk
|
https://github.com/bitwarden/mobile/releases/download/$APPVEYOR_REPO_TAG_NAME/com.x8bit.bitwarden-fdroid.apk
|
||||||
fdroid update
|
fdroid update
|
||||||
fdroid server update
|
fdroid server update
|
||||||
cd ..
|
cd ..
|
||||||
@ -89,7 +89,7 @@ build_script:
|
|||||||
cd fdroid
|
cd fdroid
|
||||||
cp index.html btn.png qr.png ../../dist/fdroid
|
cp index.html btn.png qr.png ../../dist/fdroid
|
||||||
cd $APPVEYOR_BUILD_FOLDER
|
cd $APPVEYOR_BUILD_FOLDER
|
||||||
#fi
|
fi
|
||||||
- ps: |
|
- ps: |
|
||||||
if($isWindows -and $env:KEYSTORE_DEC_SECRET) {
|
if($isWindows -and $env:KEYSTORE_DEC_SECRET) {
|
||||||
msbuild bitwarden-mobile.sln `
|
msbuild bitwarden-mobile.sln `
|
||||||
@ -102,10 +102,10 @@ build_script:
|
|||||||
|
|
||||||
on_success:
|
on_success:
|
||||||
- sh: |
|
- sh: |
|
||||||
#if [ "${APPVEYOR_REPO_TAG}" == "true" -a "${GH_TOKEN}" != "" ]
|
if [ "${APPVEYOR_REPO_TAG}" == "true" -a "${GH_TOKEN}" != "" ]
|
||||||
#then
|
then
|
||||||
npm run deploy
|
npm run deploy
|
||||||
#fi
|
fi
|
||||||
- ps: |
|
- ps: |
|
||||||
if($isWindows -and $env:PLAY_DEC_SECRET) {
|
if($isWindows -and $env:PLAY_DEC_SECRET) {
|
||||||
secure-file\tools\secure-file -decrypt store\google\Publisher\play_creds.json.enc -secret $env:PLAY_DEC_SECRET
|
secure-file\tools\secure-file -decrypt store\google\Publisher\play_creds.json.enc -secret $env:PLAY_DEC_SECRET
|
||||||
|
Loading…
Reference in New Issue
Block a user