forked from tsqllint/tsqllint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
54 lines (40 loc) · 1.27 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
#---------------------------------#
# general configuration #
#---------------------------------#
max_jobs: 2
#---------------------------------#
# environment configuration #
#---------------------------------#
environment:
nodejs_version: "9"
image: Visual Studio 2017
init:
- git config --global core.autocrlf input
install:
- ps: Install-Product node $env:nodejs_version
clone_depth: 5
#---------------------------------#
# build configuration #
#---------------------------------#
artifacts:
- path: /**\.tgz/
before_build:
- dotnet --info
- node -v
build_script:
- cmd: ./scripts/build/build.cmd
- cmd: ./scripts/build/package.cmd
- cmd: IF %APPVEYOR_REPO_TAG%==true npm pack
test_script:
- dotnet test ./source/TSQLLint.Tests/TSQLLint.Tests.csproj
- cmd: ./scripts/test/run-acceptance-tests.cmd
after_test:
- cmd: ./scripts/test/cover.cmd
- cmd: 7z a -ttar -so coverage.tar coverage | 7z a -si coverage.tgz
- cmd: 7z a -ttar -so acceptance-testing-results.tar ./tsqllint-acceptance-testing/mochawesome-report | 7z a -si acceptance-testing-results.tgz
deploy:
provider: GitHub
auth_token:
secure: +ldQnV1tY0iQRt0oAaumSoPCc7J2VWvS5wnnCx8blmwsnKPWzqO9uHvZ+cRKBjAP
on:
appveyor_repo_tag: true