forked from adazzle/react-data-grid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
64 lines (57 loc) · 1.97 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
61
62
63
64
version: 1.0.{build}
# Fix line endings in Windows. (runs before repo cloning)
init:
- git config --global core.autocrlf input
environment:
COVERALLS_REPO_TOKEN: 9RRu36GLfbnk5Ri6Y6FpoZU10CW6dlIfy
COVERALLS_SERVICE_NAME: appveyor
COVERALLS_GIT_COMMIT: $(APPVEYOR_REPO_COMMIT)
COVERALLS_GIT_BRANCH : $(APPVEYOR_REPO_BRANCH)
COVERALLS_SERVICE_JOB_ID : $(APPVEYOR_BUILD_ID)
COVERALLS_SERVICE_PULL_REQUEST : $(APPVEYOR_PULL_REQUEST_NUMBER)
access_token:
secure: dHfUgllfTEAqpcoz3iQj8TO0DGh8n90Coqf0+IXT0bIRNSIxGTDu991X+FStY613
npmrc_token:
secure: kGPlcVTOCUp5QVkRPDUGHg==
# Install scripts. (runs after repo cloning)
install:
# Decrypt .npmrc.enc file for publishing purposes if not pull request build and not scheduled build
- ps: >-
if($env:APPVEYOR_REPO_BRANCH -ne 'master'){
./ci/publish/decrypt-npmrc.ps1
}
if(!$env:APPVEYOR_SCHEDULED_BUILD -and !$env:appveyor_pull_request_number -and $env:APPVEYOR_REPO_BRANCH -eq 'master') {
./ci/publish/decrypt-npmrc.ps1
}
# Get the latest stable version of Node.js or io.js
- ps: Install-Product node 0
- npm -g install [email protected]
- set PATH=%APPDATA%\npm;%PATH%
- npm install -g gulp
- npm install
- gulp flow
- gulp dist
- gulp examples
# Post-install test scripts.
test_script:
# Output useful info for debugging.
- node --version
- npm --version
# run tests
- gulp test --release true
- ps: ./test/uploadResults.ps1
- gulp coveralls
# Don't run MS build step
build: off
cache:
- C:\Users\appveyor\AppData\Roaming\npm\node_modules -> package.json # global npm modules
- C:\Users\appveyor\AppData\Roaming\npm-cache -> package.json # npm cache
- node_modules -> package.json
on_success:
- ps: >-
if($env:APPVEYOR_REPO_BRANCH -ne 'master'){
./ci/publish/publishBranch.ps1
}
if(!$env:APPVEYOR_SCHEDULED_BUILD -and !$env:appveyor_pull_request_number -and $env:APPVEYOR_REPO_BRANCH -eq 'master') {
./ci/publish/publishMaster.ps1
}