1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-12 01:48:21 +02:00
bitwarden-browser/appveyor.yml

54 lines
1.5 KiB
YAML
Raw Normal View History

2019-03-12 17:31:30 +01:00
image:
2019-03-12 18:46:06 +01:00
#- Visual Studio 2017
2019-03-12 17:31:30 +01:00
- Ubuntu1804
branches:
except:
- l10n_master
stack: node 10
init:
2019-03-12 17:52:59 +01:00
- ps: |
if($isWindows) {
Install-Product node 10
}
2019-03-12 17:31:30 +01:00
install:
2019-03-12 18:47:20 +01:00
- sh: sudo apt-get update
2019-03-12 18:42:13 +01:00
- sh: sudo apt-get -y install pkg-config libxss-dev libsecret-1-dev rpm
2019-03-12 17:52:59 +01:00
- ps: $env:package_version = (Get-Content -Raw -Path .\src\package.json | ConvertFrom-Json).version
- ps: |
if($isWindows) {
choco install cloc --no-progress
cloc --include-lang TypeScript,JavaScript,HTML,Sass,CSS --vcs git
}
2019-03-12 17:31:30 +01:00
before_build:
- node --version
- npm --version
build_script:
- npm install
- ps: |
2019-03-12 17:52:59 +01:00
if($isLinux) {
2019-03-12 18:46:06 +01:00
npm run dist:lin
2019-03-12 19:02:17 +01:00
Push-AppveyorArtifact ./dist/Bitwarden-$env:package_version-x86_64.AppImage
Push-AppveyorArtifact ./dist/bitwarden_$env:package_version_amd64.snap
Push-AppveyorArtifact ./dist/Bitwarden-$env:package_version-amd64.deb
Push-AppveyorArtifact ./dist/Bitwarden-$env:package_version-x64.freebsd
2019-03-12 19:02:39 +01:00
Push-AppveyorArtifact ./dist/Bitwarden-$env:package_version-x86_64.rpm
2019-03-12 17:52:59 +01:00
}
else {
2019-03-12 18:46:06 +01:00
npm run dist:win:ci
2019-03-12 17:52:59 +01:00
Push-AppveyorArtifact .\dist\Bitwarden-Portable-$env:package_version.exe
Push-AppveyorArtifact .\dist\nsis-web\Bitwarden-Installer-$env:package_version.exe
Push-AppveyorArtifact .\dist\Bitwarden-$env:package_version-x64.appx
Push-AppveyorArtifact .\dist\Bitwarden-$env:package_version-ia32.appx
}
2019-03-12 19:02:17 +01:00
cache:
- '~/.cache/electron -> appveyor.yml'
- '~/.cache/electron-builder -> appveyor.yml'
- '%USERPROFILE%\.electron -> appveyor.yml'