forked from wayou/vscode-icons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
48 lines (48 loc) · 1.41 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
version: #{build}
image:
- Visual Studio 2017
environment:
# Define versions of Node.js
matrix:
- node_js: '' # latest node
- node_js: 7.9.0 # vscode >= 1.16.0
- node_js: 7.4.0 # vscode >= 1.12.0 < 1.16.0
- node_js: 6.5.0 # vscode >= 1.8.0 < 1.12.0
clone_depth: 5
matrix:
fast_finish: true
allow_failures:
- node_js: ''
# Define platforms
platform:
- x64
init:
# Install the platform version of Node.js
- ps: Install-Product node $env:node_js $env:platform
# Output useful info for debugging
- node --version
- npm --version
- yarn --version
- ps: $PSVersionTable.PSVersion -f ''
install:
# Install the latest version of Yarn
- ps: curl -o $env:temp\install.ps1 https://raw.githubusercontent.com/JimiC/ps-yarn-install/master/install.ps1 | powershell $env:temp\install.ps1
# Install modules
- yarn install
cache:
# - node_modules
- '%LOCALAPPDATA%\Yarn'
before_test:
# install coverage reporters
- npm i codeclimate-test-reporter --no-save
- npm i codecov --no-save
# run postinstall again to ensure that 'vscode.d.ts' is installed
- npm run postinstall
test_script:
# run build script
- npm run build
after_test:
# send coverage report
- ps: If ($env:CODECLIMATE_REPO_TOKEN -ne $null) { gc .\coverage\lcov.info | & .\node_modules\.bin\codeclimate-test-reporter }
- ps: If ($env:CODECOV_TOKEN -ne $null) { .\node_modules\.bin\codecov --disable=gcov }
build: off