Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added appveyor configuration #33

Merged
merged 6 commits into from
Oct 5, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Added appveyor configuration
- test are not supported yet
- artifacts are created for each platform
  • Loading branch information
peponeska committed Oct 5, 2016
commit 89919b27503766fad6fe193260d5f607fa8e1003
22 changes: 22 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: 1.0.{build}
init:
- ps:
environment:
matrix:
- Platform: net20
- Platform: net40
- Platform: net45
- Platform: sl5
- Platform: netstandard1.3
- Platform: monoandroid2.3
- Platform: xamarinios1.0
install:
- ps: "If ($env:Platform -Match \"monoandroid2.3\") {\n$AndroidToolPath = \"${env:ProgramFiles(x86)}\\Android\\android-sdk\\tools\\android\" \n#$AndroidToolPath = \"$env:localappdata\\Android\\android-sdk\\tools\\android\"\n\nFunction Get-AndroidSDKs() { \n $output = & $AndroidToolPath list sdk --all \n $sdks = $output |% { \n if ($_ -match '(?<index>\\d+)- (?<sdk>.+), revision (?<revision>[\\d\\.]+)') { \n $sdk = New-Object PSObject \n Add-Member -InputObject $sdk -MemberType NoteProperty -Name Index -Value $Matches.index \n Add-Member -InputObject $sdk -MemberType NoteProperty -Name Name -Value $Matches.sdk \n Add-Member -InputObject $sdk -MemberType NoteProperty -Name Revision -Value $Matches.revision \n $sdk \n } \n } \n $sdks \n}\n\nFunction Install-AndroidSDK() { \n [CmdletBinding()] \n Param( \n [Parameter(Mandatory=$true, Position=0)] \n [PSObject[]]$sdks \n )\n\n $sdkIndexes = $sdks |% { $_.Index } \n $sdkIndexArgument = [string]::Join(',', $sdkIndexes) \n Echo 'y' | & $AndroidToolPath update sdk -u -a -t $sdkIndexArgument \n}\n\n$sdks = Get-AndroidSDKs |? { $_.name -like 'sdk platform*API 10*' -or $_.name -like 'google apis*api 10' } \nInstall-AndroidSDK -sdks $sdks\n}"
build_script:
- cmd: >-
cd build

./build-%Platform%.bat
artifacts:
- path: build/$(Platform)
name: $(Platform)