-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
43 lines (32 loc) · 1017 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
image: Visual Studio 2019
version: 2.0.0-alpha+{build}
environment:
DEBUG: w3c-xml-validator
matrix:
- node_version: '18'
- node_version: '16'
- node_version: '14'
- node_version: '12'
- node_version: '10'
matrix:
fast_finish: true
init:
- git config --global core.autocrlf true
install:
- ps: Install-Product node $env:node_version
before_test:
- npm --version
- npm install
- npm install mocha-junit-reporter
test_script:
- npm run lint
- npx mocha --reporter mocha-junit-reporter --reporter-options mochaFile=./tr-unit.xml index.spec.js
- npx mocha --reporter mocha-junit-reporter --reporter-options mochaFile=./tr-func.xml test/functional/*.spec.js
after_test:
- ps: |
$webClient = New-Object System.Net.WebClient
$results = (Get-ChildItem -Path "tr-*.xml")
foreach ($result in $results) {
$webClient.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", $result.FullName)
}
build: off