Skip to content

Commit

Permalink
Update appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
martijn00 committed Jul 28, 2017
1 parent 5abedac commit a54b948
Show file tree
Hide file tree
Showing 15 changed files with 2,825 additions and 113 deletions.
40 changes: 40 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
root=true

[*]
end_of_line = crlf
charset = utf-8
indent_style = space
trim_trailing_whitespace = true

[*.xml]
indent_style = space

[*.cs]
indent_size = 4

dotnet_style_qualification_for_field = false:suggestion
dotnet_style_qualification_for_property = false:suggestion
dotnet_style_qualification_for_method = false:suggestion
dotnet_style_qualification_for_event = false:suggestion
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
dotnet_style_predefined_type_for_member_access = true:suggestion
dotnet_style_object_initializer = true:suggestion
dotnet_style_collection_initializer = true:suggestion
dotnet_style_explicit_tuple_names = true:suggestion
dotnet_style_coalesce_expression = true:suggestion
dotnet_style_null_propagation = true:suggestion

csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = false:suggestion
csharp_style_expression_bodied_methods = true:suggestion
csharp_style_expression_bodied_constructors = true:suggestion
csharp_style_expression_bodied_operators = true:suggestion
csharp_style_expression_bodied_properties = true:suggestion
csharp_style_expression_bodied_indexers = true:suggestion
csharp_style_expression_bodied_accessors = true:suggestion
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
csharp_style_inlined_variable_declaration = true:suggestion
csharp_style_throw_expression = true:suggestion
csharp_style_conditional_delegate_call = true:suggestion
33 changes: 33 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This file is understood by git 1.7.2+.

# Windows specific files should always be crlf on checkout
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf

# Check out the following as ln always for osx/linux/cygwin
*.sh text eol=lf

# Opt in the following types to always normalize line endings
# on checkin and always use native endings on checkout.
*.config text
*.cs text diff=csharp
*.csproj text
*.md text
*.msbuild text
*.nuspec text
*.pp text
*.ps1 text
*.sln text
*.tt text
*.txt text
*.xaml text
*.xml text

# Binary files
*.bmp binary
*.jpeg binary
*.jpg binary
*.nupkg binary
*.png binary
*.sdf binary
60 changes: 54 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

## Android Auto-generated files
Resource.designer.cs

# User-specific files
*.suo
*.user
Expand All @@ -25,11 +28,9 @@ bld/
# Visual Studo 2015 cache/options directory
.vs/

# dotnet generated file
project.lock.json

# MSTest test Results
[Tt]est[Rr]esult*/
[Tt]est[Rr]esult*
[Bb]uild[Ll]og.*

# NUNIT
Expand All @@ -41,6 +42,12 @@ TestResult.xml
[Rr]eleasePS/
dlldata.c

# .NET Core
project.lock.json
project.fragment.lock.json
artifacts/
**/Properties/launchSettings.json

*_i.c
*_p.c
*_i.h
Expand All @@ -65,6 +72,10 @@ dlldata.c
*.pidb
*.svclog
*.scc
*.exe
*.bak
*.cache
*.lib

# Chutzpah Test files
_Chutzpah*
Expand Down Expand Up @@ -105,6 +116,7 @@ _TeamCity*
# NCrunch
_NCrunch_*
.*crunch*.local.xml
*.ncrunchproject

# MightyMoose
*.mm.*
Expand Down Expand Up @@ -139,13 +151,19 @@ publish/

# NuGet Packages
*.nupkg
*.nuget.targets
# The packages folder can be ignored because of Package Restore
**/packages/*
# except build/, which is used as an MSBuild target.
!**/packages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/packages/repositories.config
# NuGet v3's project.json files produces more ignoreable files
*.nuget.props
*.nuget.targets

#Allow NuGet.exe (do not ignore)
!NuGet.exe
*.orig

# Windows Azure Build Output
csx/
Expand Down Expand Up @@ -199,14 +217,44 @@ FakesAssemblies/
# Visual Studio 6 workspace options file
*.opt

## Android Auto-generated files
Resource.designer.cs
#ignore thumbnails created by windows
Thumbs.db

# Xcode
.DS_Store
*/build/*
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
profile
*.moved-aside
DerivedData
.idea/
*.hmap
*.xccheckout

#CocoaPods
Pods
nuspec/nuget.exe

# NuGet
packages/
repositories.config

#Build
project.lock.json
tools/Cake/
tools/Addins/
tools/build/
tools/gitlink/
tools/GitVersion.CommandLine/
tools/vswhere/
tools/nuget.exe
tools/packages.config.md5sum
artifacts/
Expand Down
46 changes: 8 additions & 38 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,57 +1,27 @@
# configuration for "master" branch
# configuration for "master" branch
-
branches:
only:
- master
version: 1.0.0.{build}
version: 1.0.{build}
image: Visual Studio 2017
environment:
ANDROID_HOME: "C:\\android-sdk-windows"
NUGET_SOURCE: https://www.nuget.org/api/v2/package
NUGET_APIKEY:
secure: Kse62H9lWHIwjsqpi2ih1efUnHc5R6VfIzu1Nfr/CXcJSKPkH8EGElCIxvP43/Oh
init:
- cd \
- appveyor DownloadFile http://dl.google.com/android/android-sdk_r24.4.1-windows.zip
- 7z x android-sdk_r24.4.1-windows.zip > nul
- cd "C:\projects\XamarinMediaManager"
install:
- echo y | "%ANDROID_HOME%\tools\android.bat" update sdk -u -a -t tools
- echo y | "%ANDROID_HOME%\tools\android.bat" update sdk -u -a -t platform-tools
- echo y | "%ANDROID_HOME%\tools\android.bat" update sdk -u -a -t build-tools-24.0.2
- echo y | "%ANDROID_HOME%\tools\android.bat" update sdk -u -a -t android-24
- echo y | "%ANDROID_HOME%\tools\android.bat" update sdk -u -a -t extra-google-m2repository
- echo y | "%ANDROID_HOME%\tools\android.bat" update sdk -u -a -t extra-android-m2repository
build_script:
- ps: .\build.ps1
test:
assemblies:
- '**/*.Tests.dll'
- ps: .\build.ps1 -verbosity Diagnostic
test: off
-
branches:
only:
- develop
version: 1.0.0.{build}
version: 1.0.{build}
image: Visual Studio 2017
environment:
ANDROID_HOME: "C:\\android-sdk-windows"
NUGET_SOURCE: https://www.myget.org/F/martijn00/api/v2/package
NUGET_SOURCE: https://www.myget.org/F/mvvmcross/api/v2/package
NUGET_APIKEY:
secure: 0PNC9eZWAinI1KkE9usbhPAwF1wudL5GJi6lJn9Ylb67M7SE17LIXBoMHuRKJaLE
init:
- cd \
- appveyor DownloadFile http://dl.google.com/android/android-sdk_r24.4.1-windows.zip
- 7z x android-sdk_r24.4.1-windows.zip > nul
- cd "C:\projects\XamarinMediaManager"
install:
- echo y | "%ANDROID_HOME%\tools\android.bat" update sdk -u -a -t tools
- echo y | "%ANDROID_HOME%\tools\android.bat" update sdk -u -a -t platform-tools
- echo y | "%ANDROID_HOME%\tools\android.bat" update sdk -u -a -t build-tools-24.0.2
- echo y | "%ANDROID_HOME%\tools\android.bat" update sdk -u -a -t android-24
- echo y | "%ANDROID_HOME%\tools\android.bat" update sdk -u -a -t extra-google-m2repository
- echo y | "%ANDROID_HOME%\tools\android.bat" update sdk -u -a -t extra-android-m2repository
build_script:
- ps: .\build.ps1
test:
assemblies:
- '**/*.Tests.dll'
- ps: .\build.ps1 -verbosity Diagnostic
test: off
Loading

0 comments on commit a54b948

Please sign in to comment.