diff --git a/.gitignore b/.gitignore index a364834..9635bef 100644 --- a/.gitignore +++ b/.gitignore @@ -40,3 +40,4 @@ nuget-packages/ *.userprefs add.sh .gitignore +src/packages/ diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..03296bd --- /dev/null +++ b/.travis.yml @@ -0,0 +1,21 @@ +language: objective-c + +env: + global: + - EnableNuGetPackageRestore=true + matrix: + - MONO_VERSION="3.12.1" + +before_install: + - wget "http://download.mono-project.com/archive/${MONO_VERSION}/macos-10-x86/MonoFramework-MDK-${MONO_VERSION}.macos10.xamarin.x86.pkg" + - sudo installer -pkg "MonoFramework-MDK-${MONO_VERSION}.macos10.xamarin.x86.pkg" -target / + +before_script: +- pwd +- ls + +script: + - ./build.sh + +after_success: + - ./runTests.sh diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..427b090 --- /dev/null +++ b/build.sh @@ -0,0 +1,2 @@ +export EnableNuGetPackageRestore=true +xbuild ./src/NServiceKit.OrmLite.sln /p:TargetFramework=net40 /p:Configuration=Release diff --git a/lib/tests/nunit-console-runner.dll b/lib/tests/nunit-console-runner.dll new file mode 100644 index 0000000..e637d65 Binary files /dev/null and b/lib/tests/nunit-console-runner.dll differ diff --git a/lib/tests/nunit-console-x86.exe.config b/lib/tests/nunit-console-x86.exe.config new file mode 100644 index 0000000..8a6a2a6 --- /dev/null +++ b/lib/tests/nunit-console-x86.exe.config @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/lib/tests/nunit-console.exe b/lib/tests/nunit-console.exe new file mode 100644 index 0000000..db1700b Binary files /dev/null and b/lib/tests/nunit-console.exe differ diff --git a/lib/tests/nunit-console.exe.config b/lib/tests/nunit-console.exe.config new file mode 100644 index 0000000..8a6a2a6 --- /dev/null +++ b/lib/tests/nunit-console.exe.config @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/lib/tests/nunit.core.dll b/lib/tests/nunit.core.dll new file mode 100644 index 0000000..1c57782 Binary files /dev/null and b/lib/tests/nunit.core.dll differ diff --git a/lib/tests/nunit.core.interfaces.dll b/lib/tests/nunit.core.interfaces.dll new file mode 100644 index 0000000..941d493 Binary files /dev/null and b/lib/tests/nunit.core.interfaces.dll differ diff --git a/lib/tests/nunit.framework.extensions.dll b/lib/tests/nunit.framework.extensions.dll new file mode 100644 index 0000000..91e0585 Binary files /dev/null and b/lib/tests/nunit.framework.extensions.dll differ diff --git a/lib/tests/nunit.util.dll b/lib/tests/nunit.util.dll new file mode 100644 index 0000000..c837e9e Binary files /dev/null and b/lib/tests/nunit.util.dll differ diff --git a/nunit.sh b/nunit.sh new file mode 100755 index 0000000..d88b3d3 --- /dev/null +++ b/nunit.sh @@ -0,0 +1,10 @@ +runTest(){ + mono lib/tests/nunit-console.exe -noxml -nodots -labels -stoponerror $@ + if [ $? -ne 0 ] + then + exit 1 + fi +} + +runTest $1 -exclude=Integration,Performance +exit $? diff --git a/runTests.sh b/runTests.sh new file mode 100755 index 0000000..edf803e --- /dev/null +++ b/runTests.sh @@ -0,0 +1,11 @@ +./nunit.sh ./tests/NServiceKit.OrmLite.Tests/bin/Release/NServiceKit.OrmLite.Tests.dll /noshadow +./nunit.sh ./tests/NServiceKit.OrmLite.FirebirdTests/bin/Release/NServiceKit.OrmLite.FirebirdTests.dll /noshadow +./nunit.sh ./tests/NServiceKit.OrmLite.Sqlite32Tests/bin/Release/NServiceKit.OrmLite.Sqlite32Tests.dll /noshadow +./nunit.sh ./tests/NServiceKit.OrmLite.Sqlite64Tests/bin/Release/NServiceKit.OrmLite.Sqlite64Tests.dll /noshadow +./nunit.sh ./tests/NServiceKit.OrmLite.TestsPerf/bin/Release/NServiceKit.OrmLite.TestsPerf.exe /noshadow + + + + + + diff --git a/src/.nuget/Microsoft.Build.dll b/src/.nuget/Microsoft.Build.dll new file mode 100644 index 0000000..88a82b1 Binary files /dev/null and b/src/.nuget/Microsoft.Build.dll differ diff --git a/src/FirebirdTests/TestSimpleFirebird02/TestLiteFirebird02.csproj b/src/FirebirdTests/TestSimpleFirebird02/TestLiteFirebird02.csproj index f4b9d98..9911e0a 100644 --- a/src/FirebirdTests/TestSimpleFirebird02/TestLiteFirebird02.csproj +++ b/src/FirebirdTests/TestSimpleFirebird02/TestLiteFirebird02.csproj @@ -69,5 +69,5 @@ - + \ No newline at end of file diff --git a/src/NServiceKit.OrmLite.MySql.Tests/NServiceKit.OrmLite.MySql.Tests.csproj b/src/NServiceKit.OrmLite.MySql.Tests/NServiceKit.OrmLite.MySql.Tests.csproj index d106fd8..bdd7f34 100644 --- a/src/NServiceKit.OrmLite.MySql.Tests/NServiceKit.OrmLite.MySql.Tests.csproj +++ b/src/NServiceKit.OrmLite.MySql.Tests/NServiceKit.OrmLite.MySql.Tests.csproj @@ -58,7 +58,7 @@ - ..\..\lib\mysql.data.dll + ..\..\lib\MySql.Data.dll diff --git a/src/NServiceKit.OrmLite.Oracle/NServiceKit.OrmLite.Oracle.csproj b/src/NServiceKit.OrmLite.Oracle/NServiceKit.OrmLite.Oracle.csproj index a03a604..c2b65b2 100644 --- a/src/NServiceKit.OrmLite.Oracle/NServiceKit.OrmLite.Oracle.csproj +++ b/src/NServiceKit.OrmLite.Oracle/NServiceKit.OrmLite.Oracle.csproj @@ -76,5 +76,5 @@ NServiceKit.OrmLite - + \ No newline at end of file diff --git a/src/NServiceKit.OrmLite.Sqlite32/NServiceKit.OrmLite.Sqlite32.csproj b/src/NServiceKit.OrmLite.Sqlite32/NServiceKit.OrmLite.Sqlite32.csproj index 2be419e..0473b5c 100644 --- a/src/NServiceKit.OrmLite.Sqlite32/NServiceKit.OrmLite.Sqlite32.csproj +++ b/src/NServiceKit.OrmLite.Sqlite32/NServiceKit.OrmLite.Sqlite32.csproj @@ -82,7 +82,7 @@ - +