Permalink
Browse files

layout out the code tree

  • Loading branch information...
1 parent 57d0ed7 commit ea0e2dfd866b3b2e55fd7f29fbb7f4997d9a1993 @jeremydmiller jeremydmiller committed Dec 9, 2015
View
@@ -0,0 +1,206 @@
+## Ignore Visual Studio temporary files, build results, and
+## files generated by popular Visual Studio add-ons.
+
+# User-specific files
+*.suo
+*.user
+*.userosscache
+*.sln.docstates
+
+# User-specific files (MonoDevelop/Xamarin Studio)
+*.userprefs
+
+# Build results
+[Dd]ebug/
+[Dd]ebugPublic/
+[Rr]elease/
+[Rr]eleases/
+x64/
+x86/
+build/
+bld/
+[Bb]in/
+[Oo]bj/
+
+# Visual Studo 2015 cache/options directory
+.vs/
+
+# MSTest test Results
+[Tt]est[Rr]esult*/
+[Bb]uild[Ll]og.*
+
+packages
+
+connection.txt
+
+# NUNIT
+*.VisualState.xml
+TestResult.xml
+
+# Build Results of an ATL Project
+[Dd]ebugPS/
+[Rr]eleasePS/
+dlldata.c
+
+*_i.c
+*_p.c
+*_i.h
+*.ilk
+*.meta
+*.obj
+*.pch
+*.pdb
+*.pgc
+*.pgd
+*.rsp
+*.sbr
+*.tlb
+*.tli
+*.tlh
+*.tmp
+*.tmp_proj
+*.log
+*.vspscc
+*.vssscc
+.builds
+*.pidb
+*.svclog
+*.scc
+
+# Chutzpah Test files
+_Chutzpah*
+
+# Visual C++ cache files
+ipch/
+*.aps
+*.ncb
+*.opensdf
+*.sdf
+*.cachefile
+
+# Visual Studio profiler
+*.psess
+*.vsp
+*.vspx
+
+# TFS 2012 Local Workspace
+$tf/
+
+# Guidance Automation Toolkit
+*.gpState
+
+# ReSharper is a .NET coding add-in
+_ReSharper*/
+*.[Rr]e[Ss]harper
+*.DotSettings.user
+
+# JustCode is a .NET coding addin-in
+.JustCode
+
+# TeamCity is a build add-in
+_TeamCity*
+
+# DotCover is a Code Coverage Tool
+*.dotCover
+
+# NCrunch
+_NCrunch_*
+.*crunch*.local.xml
+
+# MightyMoose
+*.mm.*
+AutoTest.Net/
+
+# Web workbench (sass)
+.sass-cache/
+
+# Installshield output folder
+[Ee]xpress/
+
+# DocProject is a documentation generator add-in
+DocProject/buildhelp/
+DocProject/Help/*.HxT
+DocProject/Help/*.HxC
+DocProject/Help/*.hhc
+DocProject/Help/*.hhk
+DocProject/Help/*.hhp
+DocProject/Help/Html2
+DocProject/Help/html
+
+# Click-Once directory
+publish/
+
+# Publish Web Output
+*.[Pp]ublish.xml
+*.azurePubxml
+# TODO: Comment the next line if you want to checkin your web deploy settings
+# but database connection strings (with potential passwords) will be unencrypted
+*.pubxml
+*.publishproj
+
+# NuGet Packages
+*.nupkg
+# 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
+
+# Windows Azure Build Output
+csx/
+*.build.csdef
+
+# Windows Store app package directory
+AppPackages/
+
+# Others
+*.[Cc]ache
+ClientBin/
+[Ss]tyle[Cc]op.*
+~$*
+*~
+*.dbmdl
+*.dbproj.schemaview
+*.pfx
+*.publishsettings
+node_modules/
+bower_components/
+
+# RIA/Silverlight projects
+Generated_Code/
+
+# Backup & report files from converting an old project file
+# to a newer Visual Studio version. Backup files are not needed,
+# because we have git ;-)
+_UpgradeReport_Files/
+Backup*/
+UpgradeLog*.XML
+UpgradeLog*.htm
+
+# SQL Server files
+*.mdf
+*.ldf
+
+# Business Intelligence projects
+*.rdl.data
+*.bim.layout
+*.bim_*.settings
+
+# Microsoft Fakes
+FakesAssemblies/
+
+# Node.js Tools for Visual Studio
+.ntvs_analysis.dat
+
+# Visual Studio 6 build log
+*.plg
+
+# Visual Studio 6 workspace options file
+*.opt
+
+artifacts
+src/CommonAssemblyInfo.cs
+paket.lock
+
+*.DotSettings
Binary file not shown.
View
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <!-- Enable the restore command to run before builds -->
+ <RestorePackages Condition=" '$(RestorePackages)' == '' ">true</RestorePackages>
+ <!-- Download Paket.exe if it does not already exist -->
+ <DownloadPaket Condition=" '$(DownloadPaket)' == '' ">true</DownloadPaket>
+ <PaketToolsPath>$(MSBuildThisFileDirectory)</PaketToolsPath>
+ <PaketRootPath>$(MSBuildThisFileDirectory)..\</PaketRootPath>
+ <MonoPath Condition="'$(MonoPath)' == '' And Exists('/Library/Frameworks/Mono.framework/Commands/mono')">/Library/Frameworks/Mono.framework/Commands/mono</MonoPath>
+ <MonoPath Condition="'$(MonoPath)' == ''">mono</MonoPath>
+ </PropertyGroup>
+ <PropertyGroup>
+ <!-- Paket command -->
+ <PaketExePath Condition=" '$(PaketExePath)' == '' ">$(PaketToolsPath)paket.exe</PaketExePath>
+ <PaketBootStrapperExePath Condition=" '$(PaketBootStrapperExePath)' == '' ">$(PaketToolsPath)paket.bootstrapper.exe</PaketBootStrapperExePath>
+ <PaketCommand Condition=" '$(OS)' == 'Windows_NT'">"$(PaketExePath)"</PaketCommand>
+ <PaketCommand Condition=" '$(OS)' != 'Windows_NT' ">$(MonoPath) --runtime=v4.0.30319 "$(PaketExePath)"</PaketCommand>
+ <PaketBootStrapperCommand Condition=" '$(OS)' == 'Windows_NT'">"$(PaketBootStrapperExePath)" $(PaketBootStrapperCommandArgs)</PaketBootStrapperCommand>
+ <PaketBootStrapperCommand Condition=" '$(OS)' != 'Windows_NT' ">$(MonoPath) --runtime=v4.0.30319 $(PaketBootStrapperExePath) $(PaketBootStrapperCommandArgs)</PaketBootStrapperCommand>
+ <!-- Commands -->
+ <PaketReferences Condition="!Exists('$(MSBuildProjectFullPath).paket.references')">$(MSBuildProjectDirectory)\paket.references</PaketReferences>
+ <PaketReferences Condition="!Exists('$(PaketReferences)')">$(MSBuildStartupDirectory)\paket.references</PaketReferences>
+ <PaketReferences Condition="Exists('$(MSBuildProjectFullPath).paket.references')">$(MSBuildProjectFullPath).paket.references</PaketReferences>
+ <RestoreCommand>$(PaketCommand) restore --references-files "$(PaketReferences)"</RestoreCommand>
+ <DownloadPaketCommand>$(PaketBootStrapperCommand)</DownloadPaketCommand>
+ <!-- We need to ensure packages are restored prior to assembly resolve -->
+ <BuildDependsOn Condition="$(RestorePackages) == 'true'">RestorePackages; $(BuildDependsOn);</BuildDependsOn>
+ </PropertyGroup>
+ <Target Name="CheckPrerequisites">
+ <!-- Raise an error if we're unable to locate paket.exe -->
+ <Error Condition="'$(DownloadPaket)' != 'true' AND !Exists('$(PaketExePath)')" Text="Unable to locate '$(PaketExePath)'" />
+ <MsBuild Targets="DownloadPaket" Projects="$(MSBuildThisFileFullPath)" Properties="Configuration=NOT_IMPORTANT;DownloadPaket=$(DownloadPaket)" />
+ </Target>
+ <Target Name="DownloadPaket">
+ <Exec Command="$(DownloadPaketCommand)" IgnoreStandardErrorWarningFormat="true" Condition=" '$(DownloadPaket)' == 'true' AND !Exists('$(PaketExePath)')" />
+ </Target>
+ <Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
+ <Exec Command="$(RestoreCommand)" IgnoreStandardErrorWarningFormat="true" WorkingDirectory="$(PaketRootPath)" Condition="Exists('$(PaketReferences)')" ContinueOnError="true" />
+ </Target>
+</Project>
View
@@ -0,0 +1,5 @@
+source 'http://rubygems.org'
+
+gem "rake", ">=10.0.3"
+gem "bundler", ">=1.3.5"
+
View
@@ -0,0 +1,8 @@
+source https://nuget.org/api/v2
+nuget Alba
+nuget Baseline
+nuget Shouldly
+nuget storyteller 3.0.0.293-alpha
+nuget structuremap
+nuget xunit
+nuget xunit.runner.console
View
Binary file not shown.
View
@@ -0,0 +1,103 @@
+COMPILE_TARGET = ENV['config'].nil? ? "debug" : ENV['config']
+RESULTS_DIR = "results"
+BUILD_VERSION = '0.5.0'
+
+tc_build_number = ENV["BUILD_NUMBER"]
+build_revision = tc_build_number || Time.new.strftime('5%H%M')
+build_number = "#{BUILD_VERSION}.#{build_revision}"
+BUILD_NUMBER = build_number
+
+task :ci => [:version, :default, :pack]
+
+task :default => [:test, :storyteller]
+
+desc "Prepares the working directory for a new build"
+task :clean do
+ #TODO: do any other tasks required to clean/prepare the working directory
+ FileUtils.rm_rf RESULTS_DIR
+ FileUtils.rm_rf 'artifacts'
+
+end
+
+desc "Update the version information for the build"
+task :version do
+ asm_version = build_number
+
+ begin
+ commit = `git log -1 --pretty=format:%H`
+ rescue
+ commit = "git unavailable"
+ end
+ puts "##teamcity[buildNumber '#{build_number}']" unless tc_build_number.nil?
+ puts "Version: #{build_number}" if tc_build_number.nil?
+
+ options = {
+ :description => 'Next generation server side framework for .Net applications',
+ :product_name => 'Jasper',
+ :copyright => 'Copyright 2015 Jeremy D. Miller et al. All rights reserved.',
+ :trademark => commit,
+ :version => asm_version,
+ :file_version => build_number,
+ :informational_version => asm_version
+
+ }
+
+ puts "Writing src/CommonAssemblyInfo.cs..."
+ File.open('src/CommonAssemblyInfo.cs', 'w') do |file|
+ file.write "using System.Reflection;\n"
+ file.write "using System.Runtime.InteropServices;\n"
+ file.write "[assembly: AssemblyDescription(\"#{options[:description]}\")]\n"
+ file.write "[assembly: AssemblyProduct(\"#{options[:product_name]}\")]\n"
+ file.write "[assembly: AssemblyCopyright(\"#{options[:copyright]}\")]\n"
+ file.write "[assembly: AssemblyTrademark(\"#{options[:trademark]}\")]\n"
+ file.write "[assembly: AssemblyVersion(\"#{options[:version]}\")]\n"
+ file.write "[assembly: AssemblyFileVersion(\"#{options[:file_version]}\")]\n"
+ file.write "[assembly: AssemblyInformationalVersion(\"#{options[:informational_version]}\")]\n"
+ end
+end
+
+
+desc 'Compile the code'
+task :compile => [:clean] do
+ sh "paket.exe install"
+
+ msbuild = '"C:\Program Files (x86)\MSBuild\14.0\Bin\msbuild.exe"'
+
+ sh "#{msbuild} src/Jasper.sln /property:Configuration=#{COMPILE_TARGET} /v:m /t:rebuild /nr:False /maxcpucount:2"
+end
+
+desc 'Run the unit tests'
+task :test => [:compile] do
+ Dir.mkdir RESULTS_DIR
+
+ sh "packages/xunit.runner.console/tools/xunit.console.exe src/Jasper.Testing/bin/#{COMPILE_TARGET}/Jasper.Testing.dll"
+end
+
+desc "Pack up the nupkg file"
+task :pack => [:compile] do
+ sh "paket.exe pack output artifacts version #{build_number}"
+end
+
+
+desc "Launches VS to the Jasper solution file"
+task :sln do
+ sh "start src/Jasper.sln"
+end
+
+desc "Run the storyteller specifications"
+task :storyteller => [:compile] do
+ sh "packages/Storyteller/tools/st.exe run src/Jasper.Testing --results-path artifacts/stresults.htm --build #{COMPILE_TARGET}"
+end
+
+desc "Run the storyteller specifications"
+task :open_st => [:compile] do
+ sh "packages/Storyteller/tools/st.exe open src/Jasper.Testing"
+end
+
+
+"Launches the documentation project in editable mode"
+task :docs do
+ sh "paket.exe install"
+ sh "packages/Storyteller/tools/st.exe doc-run -v #{BUILD_VERSION}"
+end
+
@@ -0,0 +1,19 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Shouldly;
+using Xunit;
+
+namespace Jasper.Testing
+{
+ public class FakeTests
+ {
+ [Fact]
+ public void two_plus_two()
+ {
+ (2+2).ShouldBe(4);
+ }
+ }
+}
Oops, something went wrong.

0 comments on commit ea0e2df

Please sign in to comment.