47 lines
1018 B
YAML
47 lines
1018 B
YAML
image:
|
|
- Visual Studio 2017
|
|
- Ubuntu1804
|
|
|
|
branches:
|
|
except:
|
|
- l10n_master
|
|
|
|
services:
|
|
- docker
|
|
|
|
stack: node 10
|
|
|
|
init:
|
|
- ps: |
|
|
if($isWindows) {
|
|
Install-Product node 10
|
|
}
|
|
|
|
install:
|
|
- sh: sudo apt-get -y install pkg-config libxss-dev libsecret-1-dev rpm
|
|
- 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
|
|
}
|
|
|
|
before_build:
|
|
- node --version
|
|
- npm --version
|
|
|
|
build_script:
|
|
- npm install
|
|
- sh: npm run dist:lin
|
|
- ps: npm run dist:win:ci
|
|
- ps: |
|
|
if($isLinux) {
|
|
|
|
}
|
|
else {
|
|
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
|
|
}
|