forked from tahnik/devRantron
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
45 lines (34 loc) · 984 Bytes
/
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
os: unstable
# cache yarn and node_modules folder for rebuilds
cache:
- node_modules
# Do not build feature branch with open Pull Requests
skip_branch_with_pr: true
configuration: Release
# The environment configurations. We will use the latest node version.
environment:
# the token is encrypted by appveyor. No need to hide it.
GH_TOKEN:
secure: lM/xGAC3kzCNNZ0iKGgriVDK1C2kQlShiW8ZKVrnKzZ4zin4A3PkJ4wuNdnWfhpM
matrix:
- NODE_VERSION: 9
# make sure we are running on 64bit
platform:
- x64
# if one build fails, fail all builds.
matrix:
fast_finish: true
# we only need node (64bit) and yarn (preinstalled)
install:
- ps: Install-Product node $env:NODE_VERSION x64
- set CI=true
- npm i
before_build:
- npm run lint
build_script:
- npm run build
test: off
deploy: off
# only deploy on success and if we are on the master branch
on_success:
- IF %APPVEYOR_REPO_BRANCH%==master (IF NOT DEFINED APPVEYOR_PULL_REQUEST_NUMBER (npm run publish))