aboutsummaryrefslogtreecommitdiffstats
path: root/appveyor.yml
blob: 7fd061523179abc700169a5e4279360f3c206fef (plain) (blame)
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
48
49
50
51
52
53
54
55
56
57
58
version: build-{build}
branches:
  only:
    - develop
    - nightly
    - release
skip_tags: true
skip_branch_with_pr: true

cache:
  - '%APPDATA%\npm-cache'
  - node_modules
  - '%USERPROFILE%\.electron'
  - '%USERPROFILE%\.electron-builder'

image: Visual Studio 2019

environment:
  nodejs_version: "14.16.1"

install:
  - appveyor-retry git submodule update --init --recursive
  - ps: Update-NodeJsInstallation $env:nodejs_version
  - cmd: set NODE_OPTIONS=--max-old-space-size=2048
  - cd recipes && npm i && npm run package && cd ..
  - appveyor-retry npx lerna bootstrap

before_build:
  - npm run lint && npm test
  - cmd: set NODE_ENV=production

build_script:
  - appveyor-retry npm run build

for:
-
  branches:
    only:
      - develop
  build_script:
    - appveyor-retry npm run build
  skip_commits:
    files:
      - src/i18n/**/*.json
-
  branches:
    only:
      - nightly
  only_commits:
    message: /trigger AppVeyor nightly build/
  build_script:
    - appveyor-retry npm run build -- --publish always -c.publish.provider=github -c.publish.owner=getferdi -c.publish.repo=nightlies
-
  branches:
    only:
      - release
  build_script:
    - appveyor-retry npm run build -- --publish always -c.publish.provider=github -c.publish.owner=getferdi -c.publish.repo=ferdi