forked from tidepool-org/uploader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
executable file
·60 lines (47 loc) · 1.49 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
48
49
50
51
52
53
54
55
56
57
58
59
60
image: Visual Studio 2017
environment:
APPVEYOR_CACHE_ENTRY_ZIP_ARGS: -t7z
matrix:
- nodejs_version: 10.11.0
cache:
- "%LOCALAPPDATA%\\Yarn"
platform:
- x64
matrix:
fast_finish: true
build: off
version: '{build}'
shallow_clone: true
clone_depth: 1
skip_branch_with_pr: true
install:
- ps: $env:package_version = (Get-Content -Raw -Path package.json | ConvertFrom-Json).version
- ps: Update-AppveyorBuild -Version "$env:package_version-$env:APPVEYOR_BUILD_NUMBER"
- ps: Install-Product node $env:nodejs_version $env:platform
- set CI=true
- yarn --frozen-lockfile
test_script:
- node --version
- yarn lint
- yarn test
# - yarn test-e2e
# - yarn package-dev
# - 7z a development.zip release
# - rmdir /S /Q release
- cmd: IF /I "%ROLLBAR_POST_TOKEN%"=="" ( ECHO Missing Rollbar POST token; no package built.) ELSE ( yarn package )
# - 7z a production.zip release
# submit uploader release to antivirus vendors if tagged
- cmd: IF /I %APPVEYOR_REPO_TAG% == True ( yarn av-whitelist ) ELSE ( echo Not a tagged release. )
notifications:
- provider: Slack
incoming_webhook:
# webhook URL is encrypted so can be stored in public repo
secure: PkO2WgPHg816yzPsyT47fxuBlM5bGhsNUn+VaNmLU6zCC31xwttRteKybldC6Jp1kdlWALyRdxt7WYsWDrkrAG3tHYSHSo7RDhea4qLuwjA=
on_build_success: true
on_build_failure: true
on_build_status_changed: false
#artifacts:
# - path: development.zip
# name: Development build
# - path: production.zip
# name: Production Build