-
Notifications
You must be signed in to change notification settings - Fork 45
/
.appveyor.yml
47 lines (38 loc) · 1.52 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
image: Visual Studio 2022
platform: x64
clone_depth: 10
environment:
MOCHA_TIMEOUT: "60000"
NO_BREAKPOINTS: "1"
matrix:
- BUILD_JOB: "short_tests"
- BUILD_JOB: "scenarios"
- BUILD_JOB: "build"
cache:
- node_modules -> yarn.lock
install:
- ps: Update-NodeJsInstallation 18.12.1 x64
- cmd: appveyor-retry pip install setuptools
- cmd: appveyor-retry yarn install
- cmd: appveyor-retry node node_modules/electron/install.js
- cmd: appveyor-retry yarn install:electron
- ps: yarn build:css; yarn build:elm
test_script:
- ps: if ($env:BUILD_JOB -ne "build") { yarn bootstrap:remote }
- ps: if ($env:BUILD_JOB -eq "short_tests") { yarn test:elm }
- ps: if ($env:BUILD_JOB -eq "short_tests") { yarn test:world --timeout $env:MOCHA_TIMEOUT }
- ps: if ($env:BUILD_JOB -eq "short_tests") { yarn test:unit --timeout $env:MOCHA_TIMEOUT }
- ps: if ($env:BUILD_JOB -eq "short_tests") { yarn test:integration --timeout $env:MOCHA_TIMEOUT }
- ps: if ($env:BUILD_JOB -eq "scenarios") { yarn test:scenarios --timeout $env:MOCHA_TIMEOUT }
before_build:
- ps: if ($env:BUILD_JOB -eq "build") { pwsh -NoProfile -ExecutionPolicy Unrestricted -Command .\build\windows\setup-keylocker.ps1 }
build_script:
- ps: $env:SIGN_CODE=( ($env:APPVEYOR_REPO_BRANCH -eq "master" ) -and ($env:APPVEYOR_REPO_TAG -eq 'true') )
- ps: if ($env:BUILD_JOB -eq "build") { yarn dist }
artifacts:
- path: "dist\\latest.yml"
- path: "dist\\Cozy*Drive*Setup*.exe*"
on_failure:
- node --version
- npm --version
- yarn --version