forked from cppfw/svgdom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
65 lines (53 loc) · 2.7 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
55
56
57
58
59
60
61
62
63
64
65
branches:
only:
- master
os: Visual Studio 2017
version: "{branch}-{build}"
clone_folder: c:\projects\build
environment:
MYCI_GIT_USERNAME: igagis
MYCI_GIT_ACCESS_TOKEN:
secure: mpW6B2ols1a2FkshjKjryBuvBt8A1TpU9WGn+/d6PIQiZlzA0Rpo1ETKpmy0bnvX
DEPS: make,gcc-g++,myci,prorab,prorab-extra,utki,papki,mikroxml
install:
- cmd: C:\cygwin64\setup-x86_64.exe -g -q -X -s http://igagis.crabdance.com -s http://cygwin.mirror.constant.com -P cygport,calm,%DEPS%
- cmd: C:\cygwin\setup-x86.exe -g -q -X -s http://igagis.crabdance.com -s http://cygwin.mirror.constant.com -P cygport,calm,%DEPS%
- ps: (new-object net.webclient).DownloadFile('http://coapp.org/files/CoApp.Tools.Powershell.msi', 'C:\CoApp.Tools.Powershell.msi')
- ps: Start-Process -FilePath msiexec -ArgumentList /i, 'C:\CoApp.Tools.Powershell.msi', /quiet -Wait
- ps: $env:PSModulePath = $env:PSModulePath + ';C:\Program Files (x86)\Outercurve Foundation\Modules'
- ps: Import-Module CoApp
before_build:
- cmd: xcopy /S C:\projects\build C:\cygwin64\home\appveyor\
- cmd: xcopy /S C:\projects\build C:\cygwin\home\appveyor\
- nuget restore msvs_solution/msvs_solution.sln
- nuget update msvs_solution/msvs_solution.sln
build_script:
# cyggport downloads tagged sources from github, so use cygport only for tagged commits, otherwise build with just make.
- cmd: if "%APPVEYOR_REPO_TAG%"=="true" (
C:\cygwin64\bin\bash -e -l -c "myci-apply-version.sh -v `myci-deb-version.sh debian/changelog` cygwin/*.in" &&
C:\cygwin64\bin\bash -e -l -c "cygport cygwin/*.cygport download" &&
C:\cygwin64\bin\bash -e -l -c "cygport cygwin/*.cygport all" &&
C:\cygwin\bin\bash -e -l -c "myci-apply-version.sh -v `myci-deb-version.sh debian/changelog` cygwin/*.in" &&
C:\cygwin\bin\bash -e -l -c "cygport cygwin/*.cygport download" &&
C:\cygwin\bin\bash -e -l -c "cygport cygwin/*.cygport all"
) else (
C:\cygwin64\bin\bash -e -l -c "make" &&
C:\cygwin\bin\bash -e -l -c "make"
)
- ps: .\nuget\build_nuget.ps1
test_script:
- cmd: C:\cygwin64\bin\bash -e -l -c "make test"
- cmd: C:\cygwin\bin\bash -e -l -c "make test"
# - ps: .\tests\autotest-appveyor.ps1
before_deploy:
- cmd: if "%APPVEYOR_REPO_TAG%"=="true" (C:\cygwin64\bin\bash -e -l -c "myci-deploy-cygwin.sh -r igagis/cygwin-repo" && C:\cygwin\bin\bash -e -l -c "myci-deploy-cygwin.sh -r igagis/cygwin-repo") else (echo Skipping deploy because not a tagged commit.)
deploy:
provider: NuGet
api_key:
secure: cvBwlGzXt2fwZB1AFv+aJZca9hCQf4hW/BYwKOjCjCx0WFD9L6g9e2IH7SZ+P0Qf
skip_symbols: true
artifact: /.*\.nupkg/
on:
appveyor_repo_tag: true
artifacts:
- path: .\nuget\*.nupkg