-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
46 lines (29 loc) · 1.24 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
version: 1.7.0-{build}
install:
- cmd: git submodule update -q --init
build_script:
- ps: >-
# stage files (including submodules) in 'archive' directory for artifact creation
git checkout-index -q -a --prefix="archive/";
git submodule foreach 'git checkout-index -q -a --prefix="$toplevel/archive/$path/"';
# create bin directory for script(s) to modify diff output in Git Bash
New-Item -ItemType "Directory" -Path "archive\bin" | Out-Null;
# script for colorizing diff output in Git Bash
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/so-fancy/diff-so-fancy/master/third_party/build_fatpack/diff-so-fancy" -OutFile "archive\bin\diff-so-fancy";
test_script:
- ps: >-
# check existence of required directories for zip artifact creation
ForEach ($RequiredPath in @( "archive", "archive\bin", "archive\.vim" ))
{
If (Test-Path -Path $RequiredPath -PathType Container)
{
Write-Host "Found required '$($RequiredPath)' path for artifact creation.";
}
Else
{
Throw "Can't find required '$($RequiredPath)' path for artifact creation. $_";
}
}
artifacts:
- path: archive
name: $(appveyor_project_name)-$(appveyor_build_version)