forked from hsavran/rest-api-sdk-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
70 lines (58 loc) · 2 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
70
# Notes:
# - Minimal appveyor.yml file is an empty file. All sections are optional.
# - Indent each level of configuration with 2 spaces. Do not use tabs!
# - All section names are case-sensitive.
# - Section names should be unique on each level.
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 1.7.3.{build}
# branches to build
branches:
# whitelist
only:
- master
# Do not build on tags (GitHub only)
skip_tags: true
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
platform: Any CPU
# to add several configurations to build matrix:
configuration:
- Release
environment:
access_token:
secure: uGirc90Q29xu1EgCmOOKl6btdWuUkFqSbE51Bgh/a/WLQF+CujKM0XPETILzmdMR
matrix:
- solution_name: Source\PayPal.SDK.NET40.sln
- solution_name: Source\PayPal.SDK.NET45.sln
- solution_name: Source\PayPal.SDK.NET451.sln
# to run your custom scripts instead of automatic MSBuild
build_script:
- cmd: msbuild %solution_name% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
# on successful build
on_success:
- git config --global user.email "travis@travis-ci.org"
- git config --global user.name "Travis"
- git config --global credential.helper store
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):x-oauth-basic@github.com`n"
- mkdir ..\gh-pages
- mkdir ..\gh-pages\Samples
- xcopy /E Samples\Source\Source ..\gh-pages\Samples
- xcopy /E Docs ..\gh-pages\
# Add branch
- cd ../gh-pages
- git init
- git remote add origin https://github.com/paypal/PayPal-Net-SDK.git
- git checkout -B gh-pages
# Push generated files
- git add .
- git commit -m "Docs updated by Travis"
- git push origin gh-pages -fq
#---------------------------------#
# tests configuration #
#---------------------------------#
# to run tests from different categories as separate jobs in parallel
test:
categories:
- Unit