Skip to content

Commit

Permalink
Restore AppVeyor and DocFx
Browse files Browse the repository at this point in the history
  • Loading branch information
geoperez committed Jun 13, 2017
1 parent dea52dd commit d78a1e5
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -254,3 +254,4 @@ paket-files/
# JetBrains Rider
.idea/
*.sln.iml
_site/
52 changes: 52 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
version: '1.0.{build}'
configuration:
- Release
platform: Any CPU
notifications:
- provider: Slack
auth_token:
secure: Q+xg4/yU5OR9BVF14cw4yZ+3qlhMeYDsAhUQyOIszmF1mHvq44tIvQpWByBJCd/cgUIZk3SwBpk4hh1MrkQIk6rnaOZ2LNBTev4zrq36oXk=
channel: '#general'
environment:
# Don't report back to the mothership
DOTNET_CLI_TELEMETRY_OPTOUT: 1
COVERALLS_REPO_TOKEN:
secure: dVpAqavd3jP7LMW+oswLBPfihwiGDZUtWDQWJadMO1Gj61SYegxNsGTZOT2BYN6+
op_build_user: "Geo Perez"
op_build_user_email: "[email protected]"
access_token:
secure: HzWdswNyfQbQ0vLk9IQyO+Ei9mxoPYp9rvv6HPhtC9J/Fm7EHRzyV953pbPRXI9I
init:
- ps: $Env:LABEL = "CI" + $Env:APPVEYOR_BUILD_NUMBER.PadLeft(5, "0")
before_build:
- ps: |
if(-Not $env:APPVEYOR_PULL_REQUEST_TITLE)
{
git checkout $env:APPVEYOR_REPO_BRANCH -q
cinst docfx -y
}
- ps: Start-FileDownload 'http://ffmpeg.zeranoe.com/builds/win32/shared/ffmpeg-3.0.1-win32-shared.7z'
- 7z e ffmpeg-3.0.1-win32-shared.7z
- xcopy *.dll Unosquare.FFmpegMediaElement\ffmpeg32
- xcopy *.exe Unosquare.FFmpegMediaElement\ffmpeg32
after_build:
- ps: |
if(-Not $env:APPVEYOR_PULL_REQUEST_TITLE)
{
docfx docfx.json
git config --global credential.helper store
Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):[email protected]`n"
git config --global core.autocrlf false
git config --global user.email $env:op_build_user_email
git config --global user.name $env:op_build_user
git clone https://github.com/unosquare/ffmediaelement.git -b gh-pages origin_site -q
Copy-Item origin_site/.git _site -recurse
CD _site
Copy-Item README.html index.html -force
git add -A 2>&1
git commit -m "Documentation update" -q
git push origin gh-pages -q
CD ..
}
42 changes: 42 additions & 0 deletions docfx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"metadata": [
{
"src": [
{
"files": [
"Unosquare.FFmpegMediaElement/**/*.cs"
],
"exclude": [
"**/bin/**",
"**/obj/**",
"**/NAudio/**",
"**/FFmpeg.Autogen/**"
]
}
],
"dest": "obj/api"
}
],
"build": {
"content": [
{
"files": [
"**/*.yml"
],
"cwd": "obj/api",
"dest": "api"
},
{
"files": [
"*.md",
"toc.yml"
]
}
],
"globalMetadata": {
"_appTitle": "WPF MediaElement replacement based on FFmpeg",
"_enableSearch": true
},
"dest": "_site"
}
}
2 changes: 2 additions & 0 deletions toc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- name: API Documentation
href: obj/api/

0 comments on commit d78a1e5

Please sign in to comment.