11# gitversion will change the version number
22version : x-{build}
33
4- platform : Any CPU
54configuration : Release
6- image : Visual Studio 2015
5+ os : Visual Studio 2015
76
87init :
98 - git config --global core.autocrlf input
9+ - git config --global credential.helper store
10+ -
ps :
Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:git_token):[email protected] `n" 11+ -
git config --global user.email "[email protected] " 12+ - git config --global user.name "Appveyor CI"
1013
1114cache :
1215 - packages -> **\packages.config # preserve "packages" directory in the root of build folder but will reset it if packages.config is modified
1316
1417environment :
1518 COVERALLS_REPO_TOKEN :
1619 secure : u109t00NLIZQyREMNUyPlMd8gCi6w3o790yT8mQnzEC0LvZyevt+04u63TQfrifC
17- # snk_secret:
18- # secure: 5QzEIgiDqTIrZruPaIQIvTlNMl5BZ7TGEps7ALyBfHE=
20+ git_token :
21+ secure : NeX5NCOUXsCLc1UjTJjqB9F02FZ8Wq0VsxqTXC8kBdyK6zjxjebrf/9Da2sY1Kql
22+ snk_secret :
23+ secure : 5QzEIgiDqTIrZruPaIQIvTlNMl5BZ7TGEps7ALyBfHE=
1924
2025# tools we need for bulding/testing/deploying
2126install :
2227 - choco install gitversion.portable -pre -y
23- - nuget install secure-file -ExcludeVersion
24- - if defined snk_secret secure-file\tools\secure-file -decrypt src\ipfs.ci.snk.enc -secret %snk_secret% -out src\ipfs.dev.snk
28+ # - nuget install secure-file -ExcludeVersion
29+ # - if defined snk_secret secure-file\tools\secure-file -decrypt src\ipfs.ci.snk.enc -secret %snk_secret% -out src\ipfs.dev.snk
2530 - choco install ipfs
2631 - ipfs init
2732 - ps : Start-Process -FilePath "ipfs.exe" -ArgumentList "daemon"
@@ -42,14 +47,12 @@ build:
4247 verbosity : minimal
4348
4449after_build :
45- # Build the nuget package
46- - echo %GitVersion_NuGetVersion%
47- - cmd : nuget pack src\IpfsApi.nuspec -version "%GitVersion_NuGetVersion%" -prop "target=%CONFIGURATION%"
48- - cmd : appveyor PushArtifact "Ipfs.Api.%GitVersion_NuGetVersion%.nupkg"
4950# Build documentation in doc\_site
50- # docfx+appyeyor not working, see https://github.com/richardschneider/net-ipfs-core/wiki/Manual-build-of-documentation
51- - .\tools\docfx\docfx metadata doc\docfx.json
52- - .\tools\docfx\docfx build doc\docfx.json
51+ - tools\docfx\docfx doc\docfx.json
52+ - if defined git_token gh-pages -d doc\_site -m "new docs %GitVersion_FullSemVer%"
53+ # Build the nuget package
54+ - nuget pack src\IpfsApi.nuspec -version "%GitVersion_NuGetVersion%" -prop "target=%CONFIGURATION%"
55+ - appveyor PushArtifact "Ipfs.Api.%GitVersion_NuGetVersion%.nupkg"
5356
5457after_test :
5558# Generate coverage report
0 commit comments