-
Notifications
You must be signed in to change notification settings - Fork 11
/
appveyor.yml
108 lines (93 loc) · 4.09 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#---------------------------------#
# build configuration #
#---------------------------------#
version: 1.0.{build}
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
platform: Any CPU
# to add several platforms to build matrix:
#platform:
# - x86
# - Any CPU
# build Configuration, i.e. Debug, Release, etc.
configuration: Release
branches:
only:
- master
clone_folder: c:\projects\threelib
assembly_info:
patch: true
file: AssemblyInfo.*
assembly_version: "{version}"
assembly_file_version: "{version}"
assembly_informational_version: "{version}"
build:
project: .\src\ThreeLib.csproj
before_build:
- ps: nuget restore .\src\ThreeLib.csproj -PackagesDirectory .\packages
after_build:
- ps: nuget pack .\src\ThreeLib.csproj -Version $env:appveyor_build_version
- '%APPVEYOR_BUILD_FOLDER%\src\docgen\MarkdownGenerator.exe %APPVEYOR_BUILD_FOLDER%\src\bin\%CONFIGURATION%\ThreeLib.dll %APPVEYOR_BUILD_FOLDER%\src\docgen\docs'
environment:
access_token:
secure: fN1gPfV1hJKK/Xe2NqW/YG9xr/QXzURGC60C35jdhPE2vzv++Hg12sGgVjvDL/V7
email:
secure: TLIb25uvIfWDSHxTCa98IgkTG+JyVHdr0w6YKQDH4fU=
name:
secure: 4Tmu63pG75CB2ftIrSaD4w==
version: "%APPVEYOR_BUILD_VERSION%"
on_success:
- git config --global credential.helper store
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):[email protected]`n"
- git config --global user.email "$env:email"
- git config --global user.name "$env:name"
- git reset --hard origin/master
- ps: >-
If(!(Test-Path docs)){
new-item -Name docs -ItemType directory
cd docs
} Else {
cd docs
}
- git clone https://github.com/McNeel/threelib.wiki.git
- ps: cd threelib.wiki
- git rm *.md
- git commit -m "delete docs"
- git push -u origin master
- ps: >-
dir -r | % { if ($_.PsIsContainer) { $_.FullName + "\" } else { $_.FullName } }
- ps: Start-FileDownload 'https://ci.appveyor.com/api/projects/fraguada/threelib/artifacts/src/docgen/docs/Home.md'
- ps: Start-FileDownload 'https://ci.appveyor.com/api/projects/fraguada/threelib/artifacts/src/docgen/docs/THREE.Cameras.md'
- ps: Start-FileDownload 'https://ci.appveyor.com/api/projects/fraguada/threelib/artifacts/src/docgen/docs/THREE.Core.md'
- ps: Start-FileDownload 'https://ci.appveyor.com/api/projects/fraguada/threelib/artifacts/src/docgen/docs/THREE.Geometries.md'
- ps: Start-FileDownload 'https://ci.appveyor.com/api/projects/fraguada/threelib/artifacts/src/docgen/docs/THREE.Lights.md'
- ps: Start-FileDownload 'https://ci.appveyor.com/api/projects/fraguada/threelib/artifacts/src/docgen/docs/THREE.Materials.md'
- ps: Start-FileDownload 'https://ci.appveyor.com/api/projects/fraguada/threelib/artifacts/src/docgen/docs/THREE.Math.md'
- ps: Start-FileDownload 'https://ci.appveyor.com/api/projects/fraguada/threelib/artifacts/src/docgen/docs/THREE.Objects.md'
- ps: Start-FileDownload 'https://ci.appveyor.com/api/projects/fraguada/threelib/artifacts/src/docgen/docs/THREE.Textures.md'
- ps: Start-FileDownload 'https://ci.appveyor.com/api/projects/fraguada/threelib/artifacts/src/docgen/docs/THREE.Utility.md'
- ps: Start-FileDownload 'https://ci.appveyor.com/api/projects/fraguada/threelib/artifacts/src/docgen/docs/THREE.md'
- ps: Rename-Item -Path "Home.md" -NewName "_Sidebar.md"
- ps: New-Item "Home.md" -type file -value "Welcome to the ThreeLib Wiki. Navigate the API Reference with the sidebar ->"
- git add *.md
- ps: git commit -m "$env:version"
- git clean -f
- git push origin master -f
#on_success:
# - echo Hello on Success
artifacts:
- path: .\src\bin\Release\ThreeLib.dll
- path: .\src\bin\Release\ThreeLib.pdb
- path: .\src\bin\Release\ThreeLib.xml
- path: .\src\docgen\docs\*
name: docs
- path: '*.nupkg'
name: nugetpackage
#deploy:
# - provider: NuGet
# api_key:
# secure: 7VFQFZaH5AKQsOF9Vsjq19s97afV+/9kq4SAyCoyJP5KnT3gro3f9Vqh2txUB4+X
# artifact: nugetpackage
# - provider: GitHub
# auth_token:
# secure: fN1gPfV1hJKK/Xe2NqW/YG9xr/QXzURGC60C35jdhPE2vzv++Hg12sGgVjvDL/V7
# artifact: docs