-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
69 lines (65 loc) · 3.78 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
66
67
68
69
version: 0.4.0.{build}
shallow_clone: true
environment:
JAVA_HOME: C:\Program Files\Java\jdk1.7.0
# Don't actually build. This is not a .net project
build: false
branches:
only:
- master
cache:
- '%LOCALAPPDATA%\downloads'
clone_folder: c:\projects\mapguide-api-bindings
before_build:
- echo APPVEYOR_PROJECT_NAME %APPVEYOR_PROJECT_NAME%
- echo APPVEYOR_PROJECT_SLUG %APPVEYOR_PROJECT_SLUG%
- echo APPVEYOR_BUILD_FOLDER %APPVEYOR_BUILD_FOLDER%
- echo APPVEYOR_BUILD_ID %APPVEYOR_BUILD_ID%
- echo APPVEYOR_BUILD_NUMBER %APPVEYOR_BUILD_NUMBER%
- echo APPVEYOR_BUILD_VERSION %APPVEYOR_BUILD_VERSION%
- echo APPVEYOR_REPO_NAME %APPVEYOR_REPO_NAME%
- echo APPVEYOR_REPO_BRANCH %APPVEYOR_REPO_BRANCH%
- echo APPVEYOR_REPO_TAG %APPVEYOR_REPO_TAG%
- echo APPVEYOR_REPO_TAG_NAME %APPVEYOR_REPO_TAG_NAME%
- echo APPVEYOR_REPO_COMMIT %APPVEYOR_REPO_COMMIT%
- echo APPVEYOR_REPO_COMMIT_TIMESTAMP %APPVEYOR_REPO_COMMIT_TIMESTAMP%
install:
- if not exist "%LOCALAPPDATA%\downloads" mkdir "%LOCALAPPDATA%\downloads"
- if not exist "%LOCALAPPDATA%\downloads\mapguide-3.1-buildpack.7z" appveyor DownloadFile "https://github.com/jumpinjackie/mapguide-api-bindings/releases/download/v0.3/mapguide-3.1-buildpack.7z" -FileName %LOCALAPPDATA%\downloads\mapguide-3.1-buildpack.7z
- if not exist "%LOCALAPPDATA%\downloads\swigwin-3.0.12.zip" appveyor DownloadFile "https://prdownloads.sourceforge.net/swig/swigwin-3.0.12.zip" -FileName %LOCALAPPDATA%\downloads\swigwin-3.0.12.zip
- if not exist "%LOCALAPPDATA%\downloads\php-7.1.18-Win32-VC14-x64.zip" curl -fsSL -o "%LOCALAPPDATA%\downloads\php-7.1.18-Win32-VC14-x64.zip" https://windows.php.net/downloads/releases/php-7.1.18-Win32-VC14-x64.zip
- if not exist "%LOCALAPPDATA%\downloads\php-7.1.18-Win32-VC14-x86.zip" curl -fsSL -o "%LOCALAPPDATA%\downloads\php-7.1.18-Win32-VC14-x86.zip" https://windows.php.net/downloads/releases/php-7.1.18-Win32-VC14-x86.zip
- if not exist "%LOCALAPPDATA%\downloads\php-7.1.18.tar.gz" curl -fsSL -o "%LOCALAPPDATA%\downloads\php-7.1.18.tar.gz" http://php.net/get/php-7.1.18.tar.gz/from/this/mirror
- 7z x %LOCALAPPDATA%\downloads\php-7.1.18.tar.gz -oc:\temp
- 7z x c:\temp\php-7.1.18.tar -aos -oc:\projects\mapguide-api-bindings\thirdparty\php7\src
- 7z x %LOCALAPPDATA%\downloads\php-7.1.18-Win32-VC14-x64.zip -oc:\projects\mapguide-api-bindings\runtimes\php\Release64
- 7z x %LOCALAPPDATA%\downloads\php-7.1.18-Win32-VC14-x86.zip -oc:\projects\mapguide-api-bindings\runtimes\php\Release
- 7z x %LOCALAPPDATA%\downloads\mapguide-3.1-buildpack.7z -oc:\projects\mapguide-api-bindings\sdk\3.1
- 7z x %LOCALAPPDATA%\downloads\swigwin-3.0.12.zip -oc:\
# - dir c:\projects\mapguide-api-bindings\thirdparty\php7\src\php-7.1.18
# - dir c:\projects\mapguide-api-bindings\runtimes\php\Release64
# - dir c:\projects\mapguide-api-bindings\runtimes\php\Release
# - dir c:\projects\mapguide-api-bindings\sdk\3.1
test_script:
- build_tools.cmd
- envsetupsdk.cmd 3 1 1 9378 c:\swigwin-3.0.12 %APPVEYOR_BUILD_NUMBER%
# - cmake_build.cmd c:\projects\mg_bindings_build
- build.cmd
- make_archives.cmd
artifacts:
- path: .\packages\*.nupkg
name: NuGetPackage
- path: .\packages\*.zip
name: Bindings
deploy:
- provider: GitHub
release: $(appveyor_repo_tag_name)
description: 'Release $(appveyor_repo_tag_name) ($(appveyor_build_version))'
auth_token:
secure: d+aY+YJPCp6KzWE2XcGKdp5XFXoh66H7le3SJiqxtAHDZ1P2+kw/PgIF5Unj3kxG
artifact: NuGetPackage,Bindings
draft: true
prerelease: true
on:
branch: master # release from master branch only
appveyor_repo_tag: true # deploy on tag push only