forked from tree-sitter/tree-sitter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
50 lines (42 loc) · 1.34 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
build: false
install:
# Terminate early unless building either a tag or a PR.
- if "%APPVEYOR_REPO_TAG%" == "false" if not "%APPVEYOR_REPO_BRANCH%" == "master" appveyor exit
# Install rust
- appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
- IF "%PLATFORM%" == "x86" rustup-init -y --default-toolchain stable --default-host i686-pc-windows-msvc
- IF "%PLATFORM%" == "x64" rustup-init -y --default-toolchain stable --default-host x86_64-pc-windows-msvc
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
- rustc -vV
- cargo -vV
# Install dependencies
- git submodule update --init
platform:
- x64
- x86
test_script:
# Fetch and regenerate the fixture parsers
- script\fetch-fixtures.cmd
- cargo build --release
- script\generate-fixtures.cmd
# Run tests
- script\test.cmd
- script\benchmark.cmd
before_deploy:
- move target\release\tree-sitter.exe tree-sitter.exe
- 7z a -tgzip tree-sitter-windows-%PLATFORM%.gz tree-sitter.exe
- appveyor PushArtifact tree-sitter-windows-%PLATFORM%.gz
deploy:
description: ''
provider: GitHub
auth_token:
secure: VC9ntV5+inKoNteZyLQksKzWMKXF46P+Jx3JHKVSfF+o1rWtZn2iIHAVsQv5LaUi
artifact: /tree-sitter-windows-.*/
draft: true
force_update: true
on:
APPVEYOR_REPO_TAG: true
cache:
- target
- test\fixtures\grammars
- C:\Users\appveyor\.cargo